From df4e7efb2e203acae1ab227c0eae4b6aa5c5f264 Mon Sep 17 00:00:00 2001 From: Larpon Date: Thu, 31 Aug 2023 16:56:41 +0200 Subject: [PATCH] audio: fix cut off AudioCallback signature (#558) --- audio.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio.c.v b/audio.c.v index 419d880e..26d4f347 100644 --- a/audio.c.v +++ b/audio.c.v @@ -130,8 +130,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 //