shithub: libsamplerate

Download patch

ref: 477ce36f8e4bd6a177727f4ac32eba11864dd85d
parent: 092f717a789af0fba9de6934254d88913c653c81
author: DJMaster <[email protected]>
date: Sun Jan 29 09:14:29 EST 2017

Fix win32 compilation

Signed-off-by: Erik de Castro Lopo <[email protected]>
Closes: https://github.com/erikd/libsamplerate/issues/9
Closes: https://github.com/erikd/libsamplerate/pull/10

--- a/examples/audio_out.c
+++ b/examples/audio_out.c
@@ -823,8 +823,7 @@
 		return 0 ;
 
 	/* Do the actual audio. */
-	sample_count = win32_out->bufferlen ;
-	frame_count = sample_count / win32_out->channels ;
+	frame_count = win32_out->bufferlen / win32_out->channels ;
 
 	read_count = win32_out->callback (win32_out->callback_data, win32_out->float_buffer, frame_count) ;