OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUDIO_IO_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_ |
6 #define MEDIA_AUDIO_AUDIO_IO_H_ | 6 #define MEDIA_AUDIO_AUDIO_IO_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "media/audio/audio_buffers_state.h" | 9 #include "media/audio/audio_buffers_state.h" |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void Start(AudioInputCallback* callback) = 0; | 147 virtual void Start(AudioInputCallback* callback) = 0; |
148 | 148 |
149 // Stops recording audio. Effect might not be instantaneous as there could be | 149 // Stops recording audio. Effect might not be instantaneous as there could be |
150 // pending audio callbacks in the queue which will be issued first before | 150 // pending audio callbacks in the queue which will be issued first before |
151 // recording stops. | 151 // recording stops. |
152 virtual void Stop() = 0; | 152 virtual void Stop() = 0; |
153 | 153 |
154 // Close the stream. This also generates AudioInputCallback::OnClose(). This | 154 // Close the stream. This also generates AudioInputCallback::OnClose(). This |
155 // should be the last call made on this object. | 155 // should be the last call made on this object. |
156 virtual void Close() = 0; | 156 virtual void Close() = 0; |
| 157 |
| 158 // Returns the maximum microphone analog volume or 0.0 if device does not |
| 159 // have volume control. |
| 160 virtual double GetMaxVolume() = 0; |
| 161 |
| 162 // Sets the microphone analog volume, with range [0, max_volume] inclusive. |
| 163 virtual void SetVolume(double volume) = 0; |
| 164 |
| 165 // Returns the microphone analog volume, with range [0, max_volume] inclusive. |
| 166 virtual double GetVolume() = 0; |
157 }; | 167 }; |
158 | 168 |
159 #endif // MEDIA_AUDIO_AUDIO_IO_H_ | 169 #endif // MEDIA_AUDIO_AUDIO_IO_H_ |
OLD | NEW |