Commit 89c0d24f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: use DWORD_PTR instead of DWORD for callback declaration

This should help on Win64
parent ad3c03d5
...@@ -60,7 +60,7 @@ static int OpenWaveOutPCM( audio_output_t *, uint32_t, ...@@ -60,7 +60,7 @@ static int OpenWaveOutPCM( audio_output_t *, uint32_t,
static int PlayWaveOut ( audio_output_t *, HWAVEOUT, WAVEHDR *, static int PlayWaveOut ( audio_output_t *, HWAVEOUT, WAVEHDR *,
aout_buffer_t *, bool ); aout_buffer_t *, bool );
static void CALLBACK WaveOutCallback ( HWAVEOUT, UINT, DWORD, DWORD, DWORD ); static void CALLBACK WaveOutCallback ( HWAVEOUT, UINT, DWORD_PTR, DWORD_PTR, DWORD_PTR );
static void* WaveOutThread( void * ); static void* WaveOutThread( void * );
static int VolumeSet( audio_output_t *, float, bool ); static int VolumeSet( audio_output_t *, float, bool );
...@@ -802,8 +802,8 @@ static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout, ...@@ -802,8 +802,8 @@ static int PlayWaveOut( audio_output_t *p_aout, HWAVEOUT h_waveout,
* WaveOutCallback: what to do once WaveOut has played its sound samples * WaveOutCallback: what to do once WaveOut has played its sound samples
*****************************************************************************/ *****************************************************************************/
static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg, static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg,
DWORD _p_aout, DWORD_PTR _p_aout,
DWORD dwParam1, DWORD dwParam2 ) DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
{ {
(void)h_waveout; (void)dwParam1; (void)dwParam2; (void)h_waveout; (void)dwParam1; (void)dwParam2;
audio_output_t *p_aout = (audio_output_t *)_p_aout; audio_output_t *p_aout = (audio_output_t *)_p_aout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment