summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
committerwm4 <wm4@nowhere>2014-10-09 21:21:31 +0200
commit35649a990a5d468b6e9539c9e362d1e5a351c9c4 (patch)
tree31b1f76c5c219cfeaa0360c09122bfc45c4b90b7 /audio/out/ao.h
parent89890192711e1478e7626df6f8eb2a7ecb117342 (diff)
downloadmpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.bz2
mpv-35649a990a5d468b6e9539c9e362d1e5a351c9c4.tar.xz
audio: add device selection & listing with --audio-device
Not sure how good of an idea this is. This commit doesn't add support for this to any AO yet; the AO implementations will follow later.
Diffstat (limited to 'audio/out/ao.h')
-rw-r--r--audio/out/ao.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/out/ao.h b/audio/out/ao.h
index 7badf90aef..32b6611afc 100644
--- a/audio/out/ao.h
+++ b/audio/out/ao.h
@@ -51,6 +51,16 @@ typedef struct ao_control_vol {
float right;
} ao_control_vol_t;
+struct ao_device_desc {
+ char *name; // symbolic name; will be set on ao->device
+ char *desc; // verbose human readable name
+};
+
+struct ao_device_list {
+ struct ao_device_desc *devices;
+ int num_devices;
+};
+
struct ao;
struct mpv_global;
struct input_ctx;
@@ -76,4 +86,7 @@ void ao_resume(struct ao *ao);
void ao_drain(struct ao *ao);
bool ao_eof_reached(struct ao *ao);
+struct ao_device_list *ao_get_device_list(void);
+void ao_print_devices(struct mp_log *log);
+
#endif /* MPLAYER_AUDIO_OUT_H */