summaryrefslogtreecommitdiffstats
path: root/libao2/audio_out.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-18 04:21:58 +0100
committerwm4 <wm4@mplayer2.org>2012-01-18 04:21:58 +0100
commit6e41497d5be1f107c18b2143fa45b3c46d6e95d3 (patch)
treeba18bcab5e209d3c48658bac046fa48a9c5f053a /libao2/audio_out.h
parent064f8c2fb656462db9662c67bdbc6716958a4de4 (diff)
parentf7c2ecebccc4b3c5d6299aee5b8f4d382fa78987 (diff)
downloadmpv-6e41497d5be1f107c18b2143fa45b3c46d6e95d3.tar.bz2
mpv-6e41497d5be1f107c18b2143fa45b3c46d6e95d3.tar.xz
Merge branch 'softvol' into my_master
Diffstat (limited to 'libao2/audio_out.h')
-rw-r--r--libao2/audio_out.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index e96e123700..c5ddb5bf60 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -78,6 +78,7 @@ struct ao {
int buffer_playable_size;
bool initialized;
bool untimed;
+ bool no_persistent_volume;
const struct ao_driver *driver;
void *priv;
};
@@ -96,10 +97,19 @@ void list_audio_out(void);
#define AOCONTROL_SET_DEVICE 1
#define AOCONTROL_GET_DEVICE 2
#define AOCONTROL_QUERY_FORMAT 3 /* test for availabilty of a format */
+// Uses ao_control_vol_t* as arg.
+// If the volume controls are joint, the average of both volumes should be used.
#define AOCONTROL_GET_VOLUME 4
#define AOCONTROL_SET_VOLUME 5
-#define AOCONTROL_SET_PLUGIN_DRIVER 6
-#define AOCONTROL_SET_PLUGIN_LIST 7
+// Uses ao_control_vol_t* as arg.
+// left==0.0f means muted, left==1.0f means not muted (right likewise)
+// Other values between are invalid.
+// If the mtue controls are joint, the output should be muted if either of the
+// two channels are muted.
+#define AOCONTROL_GET_MUTE 6
+#define AOCONTROL_SET_MUTE 7
+#define AOCONTROL_SET_PLUGIN_DRIVER 8
+#define AOCONTROL_SET_PLUGIN_LIST 9
#define AOPLAY_FINAL_CHUNK 1