]> git.sesse.net Git - vlc/commitdiff
Win32: use DWORD_PTR instead of DWORD for callback declaration
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Sep 2011 00:54:05 +0000 (02:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Sep 2011 00:54:05 +0000 (02:54 +0200)
This should help on Win64

modules/audio_output/waveout.c

index fc0b8e4c60425467fa1b6b281448716103a12ef9..4f365006487550b8122ed78b92c086922123ed66 100644 (file)
@@ -60,7 +60,7 @@ static int OpenWaveOutPCM( audio_output_t *, uint32_t,
 static int PlayWaveOut   ( audio_output_t *, HWAVEOUT, WAVEHDR *,
                            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 int VolumeSet( audio_output_t *, float, bool );
@@ -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
  *****************************************************************************/
 static void CALLBACK WaveOutCallback( HWAVEOUT h_waveout, UINT uMsg,
-                                      DWORD _p_aout,
-                                      DWORD dwParam1, DWORD dwParam2 )
+                                      DWORD_PTR _p_aout,
+                                      DWORD_PTR dwParam1, DWORD_PTR dwParam2 )
 {
     (void)h_waveout;    (void)dwParam1;    (void)dwParam2;
     audio_output_t *p_aout = (audio_output_t *)_p_aout;