summaryrefslogtreecommitdiffstats
path: root/audio/out/internal.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-22 17:12:08 +0200
committerwm4 <wm4@nowhere>2014-10-22 17:12:08 +0200
commit32720cdc17929d363b87301cb5ed8316c86c02f2 (patch)
tree1f1001f495c1cb9319a3ad15d46959933f4481f8 /audio/out/internal.h
parent42158b819a0db629acd39a21e041805a2359a8ab (diff)
downloadmpv-32720cdc17929d363b87301cb5ed8316c86c02f2.tar.bz2
mpv-32720cdc17929d363b87301cb5ed8316c86c02f2.tar.xz
audio/out: add redirection-on-init mechanism
Looks like this will help us with making --audio-device and spdif work as expected on OSX. To be used ina following commit.
Diffstat (limited to 'audio/out/internal.h')
-rw-r--r--audio/out/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/internal.h b/audio/out/internal.h
index 18120fb1d3..cebc265f04 100644
--- a/audio/out/internal.h
+++ b/audio/out/internal.h
@@ -49,6 +49,9 @@ struct ao {
// default device should be used, this is set to NULL.
char *device;
+ // Used during init: if init fails, redirect to this ao
+ char *redirect;
+
int buffer;
double def_buffer;
void *api_priv;