From fa044685c437e97e846b59681abd1933b35a456e Mon Sep 17 00:00:00 2001 From: Jonne Kokkonen Date: Fri, 30 Aug 2024 21:57:50 +0300 Subject: [PATCH] restore userdata parameter name to audio_cb_in, add dummy statement to suppress warning --- src/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio.c b/src/audio.c index 53c9491..2224f9f 100644 --- a/src/audio.c +++ b/src/audio.c @@ -22,7 +22,8 @@ void toggle_audio(const unsigned int audio_buffer_size, const char *output_devic SDL_Log(audio_paused ? "Audio paused" : "Audio resumed"); } -void audio_cb_in(void *, uint8_t *stream, int len) { +void audio_cb_in(void *userdata, uint8_t *stream, int len) { + (void)userdata; // suppress compiler warning SDL_QueueAudio(devid_out, stream, len); }