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 MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ | 5 #ifndef MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ |
6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ | 6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // AudioInputStream: | 49 // AudioInputStream: |
50 virtual bool Open() override; | 50 virtual bool Open() override; |
51 virtual void Start(AudioInputCallback* callback) override; | 51 virtual void Start(AudioInputCallback* callback) override; |
52 virtual void Stop() override; | 52 virtual void Stop() override; |
53 virtual void Close() override; | 53 virtual void Close() override; |
54 virtual double GetMaxVolume() override; | 54 virtual double GetMaxVolume() override; |
55 virtual void SetVolume(double volume) override; | 55 virtual void SetVolume(double volume) override; |
56 virtual double GetVolume() override; | 56 virtual double GetVolume() override; |
57 virtual void SetAutomaticGainControl(bool enabled) override; | 57 virtual void SetAutomaticGainControl(bool enabled) override; |
58 virtual bool GetAutomaticGainControl() override; | 58 virtual bool GetAutomaticGainControl() override; |
| 59 virtual bool IsMuted() override; |
59 | 60 |
60 // Attaches a VirtualAudioOutputStream to be used as input. This | 61 // Attaches a VirtualAudioOutputStream to be used as input. This |
61 // VirtualAudioInputStream must outlive all attached streams, so any attached | 62 // VirtualAudioInputStream must outlive all attached streams, so any attached |
62 // stream must be closed (which causes a detach) before | 63 // stream must be closed (which causes a detach) before |
63 // VirtualAudioInputStream is destroyed. | 64 // VirtualAudioInputStream is destroyed. |
64 virtual void AddOutputStream(VirtualAudioOutputStream* stream, | 65 virtual void AddOutputStream(VirtualAudioOutputStream* stream, |
65 const AudioParameters& output_params); | 66 const AudioParameters& output_params); |
66 | 67 |
67 // Detaches a VirtualAudioOutputStream and removes it as input. | 68 // Detaches a VirtualAudioOutputStream and removes it as input. |
68 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream, | 69 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 FakeAudioConsumer fake_consumer_; | 108 FakeAudioConsumer fake_consumer_; |
108 | 109 |
109 base::ThreadChecker thread_checker_; | 110 base::ThreadChecker thread_checker_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream); | 112 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace media | 115 } // namespace media |
115 | 116 |
116 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ | 117 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ |
OLD | NEW |