diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 04:01:28 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 04:30:53 -0800 |
commit | 497df443c0a171d7bab193686df93edb189bc54a (patch) | |
tree | ac5164724ce7ccf369592cddcbe717ae558f6baf /audio | |
parent | e8dbdf1eb99a5a1b3c5d3749bd1c59696e6cc620 (diff) | |
download | mpv-497df443c0a171d7bab193686df93edb189bc54a.tar.bz2 mpv-497df443c0a171d7bab193686df93edb189bc54a.tar.xz |
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
Diffstat (limited to 'audio')
-rwxr-xr-x | audio/out/ao_wasapi_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 1f329d33b4..c3a8eaa2b7 100755 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -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); |