mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
WAVE_FORMAT_DIRECT seems to cause problems with certain os/driver combinations and seems to be useless anyway
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14530 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
97372dab4f
commit
05d61f2f62
@ -203,7 +203,7 @@ static int init(int rate,int channels,int format,int flags)
|
|||||||
|
|
||||||
//open sound device
|
//open sound device
|
||||||
//WAVE_MAPPER always points to the default wave device on the system
|
//WAVE_MAPPER always points to the default wave device on the system
|
||||||
result = waveOutOpen(&hWaveOut,WAVE_MAPPER,(WAVEFORMATEX*)&wformat,(DWORD_PTR)waveOutProc,0,CALLBACK_FUNCTION|WAVE_FORMAT_DIRECT);
|
result = waveOutOpen(&hWaveOut,WAVE_MAPPER,(WAVEFORMATEX*)&wformat,(DWORD_PTR)waveOutProc,0,CALLBACK_FUNCTION);
|
||||||
if(result == WAVERR_BADFORMAT)
|
if(result == WAVERR_BADFORMAT)
|
||||||
{
|
{
|
||||||
mp_msg(MSGT_AO, MSGL_ERR,"ao_win32: format not supported switching to default\n");
|
mp_msg(MSGT_AO, MSGL_ERR,"ao_win32: format not supported switching to default\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user