summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi_utils.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-03-31 12:53:05 -0700
committerKevin Mitchell <kevmitch@gmail.com>2015-03-31 13:43:32 -0700
commitb6c28dd26b6415181b406e1118920b13f80286b4 (patch)
tree2a7ee7350851c83de68f76b69f53bb1b79886874 /audio/out/ao_wasapi_utils.h
parentea00fe0eebe234c5f6f0f01f7f117cca3516d4df (diff)
downloadmpv-b6c28dd26b6415181b406e1118920b13f80286b4.tar.bz2
mpv-b6c28dd26b6415181b406e1118920b13f80286b4.tar.xz
ao_wasapi: simplify hotplug
Take advantage of the fact that list_devs is called with a hotplug_inited ao. Also eliminate unnecessary nested function abstraction of hotplug_(un)init and list_devs. However, keep list_devs in ao_wasapi_utils.c since it uses the private functions get_device_id, get_device_name and exposing these would require including headers for IMMDevice in ao_wasapi_utils.h.
Diffstat (limited to 'audio/out/ao_wasapi_utils.h')
-rwxr-xr-xaudio/out/ao_wasapi_utils.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/audio/out/ao_wasapi_utils.h b/audio/out/ao_wasapi_utils.h
index 9806bba4a9..c0eb77388d 100755
--- a/audio/out/ao_wasapi_utils.h
+++ b/audio/out/ao_wasapi_utils.h
@@ -36,16 +36,12 @@ bool wasapi_fill_VistaBlob(wasapi_state *state);
const char *wasapi_explain_err(const HRESULT hr);
-HRESULT wasapi_enumerate_devices(struct ao *ao,
- struct ao_device_list *list);
+void wasapi_list_devs(struct ao *ao, struct ao_device_list *list);
void wasapi_dispatch(void);
HRESULT wasapi_thread_init(struct ao *ao);
void wasapi_thread_uninit(struct ao *ao);
-HRESULT wasapi_hotplug_init(struct ao *ao);
-void wasapi_hotplug_uninit(struct ao *ao);
-
HRESULT wasapi_setup_proxies(wasapi_state *state);
void wasapi_release_proxies(wasapi_state *state);