shithub: opus-tools

Download patch

ref: 23b858f21b9c10c6bf7519695a661053f3f75908
parent: 5865436bbbfdefe5454a18e0b961b0945a52a280
author: Chris Moeller <kode54@gmail.com>
date: Thu Jul 19 16:29:55 EDT 2012

Fixes WaveOut playback for 64 bit builds

--- a/src/wave_out.c
+++ b/src/wave_out.c
@@ -128,7 +128,7 @@
 	outFormat.nBlockAlign     = (outFormat.wBitsPerSample + 7) / 8 * outFormat.nChannels;
 	outFormat.nAvgBytesPerSec = outFormat.nSamplesPerSec * outFormat.nBlockAlign;
 
-	switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD)wave_callback, 0, CALLBACK_FUNCTION ) )
+	switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD_PTR)wave_callback, 0, CALLBACK_FUNCTION ) )
 	{
 		case MMSYSERR_ALLOCATED:   return Box ( "Device is already open." );
 		case MMSYSERR_BADDEVICEID: return Box ( "The specified device is out of range." );