379
379
/* open the default audio device with the given caps */
380
380
mmresult = waveOutOpen (&wfsink->hwaveout, WAVE_MAPPER,
381
&wfx, (DWORD) waveOutProc, (DWORD) wfsink, CALLBACK_FUNCTION);
381
&wfx, (DWORD_PTR) waveOutProc, (DWORD_PTR) wfsink, CALLBACK_FUNCTION);
382
382
if (mmresult != MMSYSERR_NOERROR) {
383
383
waveOutGetErrorText (mmresult, wfsink->error_string, ERROR_LENGTH - 1);
384
384
GST_ELEMENT_ERROR (wfsink, RESOURCE, OPEN_WRITE,