ao/wasapi: look for "multimedia" default device instead of "console"

console is more for system notifications / voice command, mpv is most certainly multimedia

http://msdn.microsoft.com/en-us/library/windows/desktop/dd370842%28v=vs.85%29.aspx
This commit is contained in:
Kevin Mitchell 2014-11-17 04:01:28 -08:00
parent e8dbdf1eb9
commit 497df443c0
1 changed files with 2 additions and 2 deletions

View File

@ -649,7 +649,7 @@ static HRESULT enumerate_with_state(struct mp_log *log, struct ao *ao,
EXIT_ON_ERROR(hr);
hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(pEnumerator,
eRender, eConsole,
eRender, eMultimedia,
&pDevice);
EXIT_ON_ERROR(hr);
@ -739,7 +739,7 @@ static HRESULT load_default_device(struct ao *ao, IMMDevice **ppDevice)
EXIT_ON_ERROR(hr);
hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(pEnumerator,
eRender, eConsole,
eRender, eMultimedia,
ppDevice);
SAFE_RELEASE(pEnumerator, IMMDeviceEnumerator_Release(pEnumerator));
EXIT_ON_ERROR(hr);