Skip to content

Commit

Permalink
restore userdata parameter name to audio_cb_in, add dummy statement t…
Browse files Browse the repository at this point in the history
…o suppress warning
  • Loading branch information
laamaa committed Aug 30, 2024
1 parent 87a1ab9 commit fa04468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit fa04468

Please sign in to comment.