From 39aa7d9846a8a04e8f08acc0ea9e2ce38336e523 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 10 Apr 2012 04:45:53 +0300 Subject: 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. --- libao2/audio_out.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libao2/audio_out.h') 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 -- cgit v1.2.3