From c46b7026bf26a5b7ca803eea7a0cf65bbb69fa79 Mon Sep 17 00:00:00 2001 From: Larpon Date: Thu, 31 Aug 2023 17:16:57 +0200 Subject: [PATCH] audio: fix cut off AudioCallback signature (#558) (#562) --- audio.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio.c.v b/audio.c.v index d3b1eda7..119ad63d 100644 --- a/audio.c.v +++ b/audio.c.v @@ -131,8 +131,8 @@ pub const ( // You can choose to avoid callbacks and use SDL_QueueAudio() instead, if // you like. Just open your audio device with a NULL callback. // -// `typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream)` -pub type AudioCallback = fn (userdata voidptr, stream &u8) +// `typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream, int len)` +pub type AudioCallback = fn (userdata voidptr, stream &u8, len int) // AudioSpec //