Skip to content

Commit 497db34

Browse files
committed
wave_out: fix types for waveout callback
1 parent b35c295 commit 497db34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wave_out.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Box ( const char* msg )
7171
*/
7272

7373
static void CALLBACK
74-
wave_callback ( HWAVE hWave, UINT uMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2 )
74+
wave_callback ( HWAVEOUT hWave, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
7575
{
7676
if ( uMsg == WOM_DONE ) {
7777
EnterCriticalSection ( &cs );
@@ -125,7 +125,7 @@ Set_WIN_Params ( FILE_T dummyFile ,
125125
outFormat.nBlockAlign = (outFormat.wBitsPerSample + 7) / 8 * outFormat.nChannels;
126126
outFormat.nAvgBytesPerSec = outFormat.nSamplesPerSec * outFormat.nBlockAlign;
127127

128-
switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD)wave_callback, 0, CALLBACK_FUNCTION ) )
128+
switch ( waveOutOpen ( &dev, deviceID, &outFormat, (DWORD_PTR)wave_callback, 0, CALLBACK_FUNCTION ) )
129129
{
130130
case MMSYSERR_ALLOCATED: return Box ( "Device is already open." );
131131
case MMSYSERR_BADDEVICEID: return Box ( "The specified device is out of range." );

0 commit comments

Comments
 (0)