[Speex-dev] [PATCH] wave_out: fix casts

Tristan Matthews tmatth at videolan.org
Mon Jul 11 15:38:31 UTC 2016


---
 src/wave_out.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/wave_out.c b/src/wave_out.c
index 57b5703..0f871b9 100644
--- a/src/wave_out.c
+++ b/src/wave_out.c
@@ -71,7 +71,7 @@ Box ( const char* msg )
  */
 
 static void CALLBACK
-wave_callback ( HWAVE hWave, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 )
+wave_callback ( HWAVEOUT hWave, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
 {
 	if ( uMsg == WOM_DONE ) {
 		EnterCriticalSection ( &cs );
@@ -125,7 +125,7 @@ Set_WIN_Params ( FILE_T   dummyFile ,
 	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." );
-- 
2.8.1



More information about the Speex-dev mailing list