Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 virtual double GetVolumePercent() = 0; | 23 virtual double GetVolumePercent() = 0; |
| 24 | 24 |
| 25 // Sets the volume, possibly asynchronously. | 25 // Sets the volume, possibly asynchronously. |
| 26 // |percent| should be in the range [0.0, 100.0]. | 26 // |percent| should be in the range [0.0, 100.0]. |
| 27 virtual void SetVolumePercent(double percent) = 0; | 27 virtual void SetVolumePercent(double percent) = 0; |
| 28 | 28 |
| 29 // Is the device currently muted? | 29 // Is the device currently muted? |
| 30 virtual bool IsMuted() = 0; | 30 virtual bool IsMuted() = 0; |
| 31 | 31 |
| 32 // Mutes or unmutes the device, possibly asynchronously. | 32 // Mutes or unmutes the device, possibly asynchronously. |
| 33 virtual void SetMuted(bool mute) = 0; | 33 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
| |
| 34 | 34 |
| 35 // 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
| |
| 36 virtual bool IsMuteLocked() = 0; | |
| 37 | |
| 38 // Locks the mute state of the device. | |
| 39 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
| |
| 40 | |
| 41 // Is the capture device currently muted? | |
| 42 virtual bool IsCaptureMuted() = 0; | |
| 43 | |
| 44 // Mutes or unmutes the capture device, possible asynchronously. | |
| 45 virtual void SetCaptureMuted(bool mute) = 0; | |
| 46 | |
| 47 // Is the capture device's mute state currently locked? | |
| 48 virtual bool IsCaptureMuteLocked() = 0; | |
| 49 | |
| 50 // Locks the capture mute state of the device. | |
| 51 virtual void SetCaptureMuteLocked(bool locked) = 0; | |
| 52 | |
| 35 private: | 53 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(AudioMixer); | 54 DISALLOW_COPY_AND_ASSIGN(AudioMixer); |
| 37 }; | 55 }; |
| 38 | 56 |
| 39 } // namespace chromeos | 57 } // namespace chromeos |
| 40 | 58 |
| 41 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_MIXER_H_ |
| OLD | NEW |