Chromium Code Reviews| 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 // Sets the microphone analog volume, with range [0.0, max_volume] inclusive. | |
| 159 virtual void SetMicVolume(double volume) = 0; | |
| 160 | |
| 161 // Gets the microphone analog volume, with range [0.0, max_volume] inclusive. | |
| 162 virtual void GetMicVolume(double* volume) = 0; | |
| 163 | |
| 164 // Gets the maximum microphone analog volume. | |
| 165 virtual void GetMaxMicVolume(double* max_volume) = 0; | |
|
henrika (OOO until Aug 14)
2012/02/21 14:03:47
What about moving this API up to make it more clea
no longer working on chromium
2012/02/21 18:01:38
Done.
| |
| 157 }; | 166 }; |
| 158 | 167 |
| 159 #endif // MEDIA_AUDIO_AUDIO_IO_H_ | 168 #endif // MEDIA_AUDIO_AUDIO_IO_H_ |
| OLD | NEW |