OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_ |
| 6 #define MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_ |
| 7 |
| 8 #include "media/audio/audio_io.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 class MEDIA_EXPORT MuteableAudioOutputStream : public AudioOutputStream { |
| 13 public: |
| 14 // Volume control coming from hardware. It overrides volume when it's |
| 15 // true. Otherwise, use SetVolume(double volume) for scaling. |
| 16 // This is needed because platform voice volume never goes to zero in |
| 17 // COMMUNICATION mode on Android. |
| 18 virtual void SetMute(bool muted) = 0; |
| 19 }; |
| 20 |
| 21 } // namespace media |
| 22 |
| 23 #endif // MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_ |
OLD | NEW |