Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Matthews <tmatth@videolan.org>2016-07-11 18:37:18 +0300
committerTristan Matthews <tmatth@videolan.org>2016-07-11 18:45:26 +0300
commit497db349f47350a62ba42a91c10d7e203e64d167 (patch)
tree10fbfd60a986c74874bb64e148a6d32b9e91561f
parentb35c295682a3d257ddef4abb8d76e8c7aeff358c (diff)
wave_out: fix types for waveout callback
-rw-r--r--src/wave_out.c4
1 files 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." );