summaryrefslogtreecommitdiffstats
path: root/libao2/audio_out.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-04-10 04:45:53 +0300
committerUoti Urpala <uau@mplayer2.org>2012-04-11 03:56:28 +0300
commit39aa7d9846a8a04e8f08acc0ea9e2ce38336e523 (patch)
tree2280ab1d42123798bdbb70c83a31c959f949fb94 /libao2/audio_out.h
parent9624f10aa85039c73d4bdb70e8062daeabaa90c6 (diff)
downloadmpv-39aa7d9846a8a04e8f08acc0ea9e2ce38336e523.tar.bz2
mpv-39aa7d9846a8a04e8f08acc0ea9e2ce38336e523.tar.xz
mixer: support native audio driver mute
Make mixer support setting the mute attribute at audio driver level, if one exists separately from volume. As of this commit, no libao2 driver exposes such an attribute yet; that will be added in later commits. Since the mute status can now be set externally, it's no longer completely obvious when the player should automatically disable mute when uninitializing an audio output. The implemented behavior is to turn mute off at uninitialization if we turned it on and haven't noticed it turn off (by external means) since.
Diffstat (limited to 'libao2/audio_out.h')
-rw-r--r--libao2/audio_out.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libao2/audio_out.h b/libao2/audio_out.h
index 5a9d52def3..955376d460 100644
--- a/libao2/audio_out.h
+++ b/libao2/audio_out.h
@@ -35,6 +35,9 @@ enum aocontrol {
// If there's only one volume, SET should use average of left/right.
AOCONTROL_GET_VOLUME,
AOCONTROL_SET_VOLUME,
+ // _MUTE commands take a pointer to bool
+ AOCONTROL_GET_MUTE,
+ AOCONTROL_SET_MUTE,
};
#define AOPLAY_FINAL_CHUNK 1