diff options
author | wm4 <wm4@nowhere> | 2014-10-13 18:21:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-13 18:21:45 +0200 |
commit | e9b0a61444dc6496b7032858364ea34a0d99bd7b (patch) | |
tree | f1c951b7b7aa1b6ffd21582a3e4116c208bd8f73 /audio/out/ao_wasapi.c | |
parent | fb7cc7274e1c98547a5fb6478a92f91c3455bab4 (diff) | |
download | mpv-e9b0a61444dc6496b7032858364ea34a0d99bd7b.tar.bz2 mpv-e9b0a61444dc6496b7032858364ea34a0d99bd7b.tar.xz |
ao_wasapi: implement device listing
Diffstat (limited to 'audio/out/ao_wasapi.c')
-rw-r--r-- | audio/out/ao_wasapi.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 39d6a5bda6..66de466bbc 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -191,7 +191,7 @@ static int init(struct ao *ao) wasapi_fill_VistaBlob(state); if (state->opt_list) { - wasapi_enumerate_devices(state->log); + wasapi_enumerate_devices(state->log, NULL, NULL); } if (state->opt_exclusive) { @@ -329,6 +329,11 @@ static void audio_resume(struct ao *ao) IAudioClient_Start(state->pAudioClientProxy); } +static void list_devs(struct ao *ao, struct ao_device_list *list) +{ + wasapi_enumerate_devices(mp_null_log, ao, list); +} + #define OPT_BASE_STRUCT struct wasapi_state const struct ao_driver audio_out_wasapi = { @@ -339,6 +344,7 @@ const struct ao_driver audio_out_wasapi = { .control = control, //.reset = audio_reset, <- doesn't wait for audio callback to return .resume = audio_resume, + .list_devs = list_devs, .priv_size = sizeof(wasapi_state), .options = (const struct m_option[]) { OPT_FLAG("exclusive", opt_exclusive, 0), |