Chromium Code Reviews| Index: chrome/browser/chromeos/audio/audio_mixer.h |
| diff --git a/chrome/browser/chromeos/audio/audio_mixer.h b/chrome/browser/chromeos/audio/audio_mixer.h |
| index cb9dd67d951fbdb144392b99fdea37a3508220d0..6f9d51b444c6a48dbfeb098235b2d6660b52bd85 100644 |
| --- a/chrome/browser/chromeos/audio/audio_mixer.h |
| +++ b/chrome/browser/chromeos/audio/audio_mixer.h |
| @@ -32,6 +32,24 @@ class AudioMixer { |
| // Mutes or unmutes the device, possibly asynchronously. |
| virtual void SetMuted(bool mute) = 0; |
|
Daniel Erat
2012/08/27 17:38:35
nit: document that callers must call IsMuteLocked(
pastarmovj
2012/08/28 15:11:50
Technically nothing prevents the caller to call Se
|
| + // Is the device's mute state currently locked? |
|
Mattias Nissler (ping if slow)
2012/08/28 12:24:24
What does it mean to mute-luck the device? User ca
pastarmovj
2012/08/28 15:11:50
To mute lock means that the audio inputs or output
|
| + virtual bool IsMuteLocked() = 0; |
| + |
| + // Locks the mute state of the device. |
| + virtual void SetMuteLocked(bool locked) = 0; |
|
Daniel Erat
2012/08/27 17:38:35
Would we ever want to lock the device in an unmute
pastarmovj
2012/08/28 15:11:50
Actually it is needed especially in the AudioMixer
|
| + |
| + // Is the capture device currently muted? |
| + virtual bool IsCaptureMuted() = 0; |
| + |
| + // Mutes or unmutes the capture device, possible asynchronously. |
| + virtual void SetCaptureMuted(bool mute) = 0; |
| + |
| + // Is the capture device's mute state currently locked? |
| + virtual bool IsCaptureMuteLocked() = 0; |
| + |
| + // Locks the capture mute state of the device. |
| + virtual void SetCaptureMuteLocked(bool locked) = 0; |
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(AudioMixer); |
| }; |