From a47c3b465eb2a37f817dd0950cec8cd81375a2db Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 29 Mar 2013 18:09:59 +0100 Subject: [PATCH] NativeMix now returns int --- base/NativeApp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/NativeApp.h b/base/NativeApp.h index 7a4195f8dd..04630fbb9c 100644 --- a/base/NativeApp.h +++ b/base/NativeApp.h @@ -61,7 +61,9 @@ void NativeRender(); // of num_samples. // This function may be called from a totally separate thread from // the rest of the game, so be careful with synchronization. -void NativeMix(short *audio, int num_samples); +// Returns the number of samples actually output. The app should do everything it can +// to fill the buffer completely. +int NativeMix(short *audio, int num_samples); void NativeSetMixer(void* mixer); // Called when it's time to shutdown. After this has been called,