Skip to content

Commit 6236d01

Browse files
committed
audio: fix cut off AudioCallback signature (vlang#558)
1 parent dcabc90 commit 6236d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

audio.c.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ pub const (
131131
// You can choose to avoid callbacks and use SDL_QueueAudio() instead, if
132132
// you like. Just open your audio device with a NULL callback.
133133
//
134-
// `typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream)`
135-
pub type AudioCallback = fn (userdata voidptr, stream &u8)
134+
// `typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream, int len)`
135+
pub type AudioCallback = fn (userdata voidptr, stream &u8, len int)
136136

137137
// AudioSpec
138138
//

0 commit comments

Comments
 (0)