mirror of https://github.com/mpv-player/mpv
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:
parent
e8dbdf1eb9
commit
497df443c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue