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 // Gets the maximum microphone analog volume. | |
159 virtual void GetMaxMicVolume(double* max_volume) = 0; | |
scherkus (not reviewing)
2012/02/21 19:20:01
do we really want to introduce "Mic" into our nami
no longer working on chromium
2012/02/22 17:02:23
Done, removed the "Mic".
| |
160 | |
161 // Sets the microphone analog volume, with range [0.0, max_volume] inclusive. | |
162 virtual void SetMicVolume(double volume) = 0; | |
163 | |
164 // Gets the microphone analog volume, with range [0.0, max_volume] inclusive. | |
165 virtual void GetMicVolume(double* volume) = 0; | |
scherkus (not reviewing)
2012/02/21 19:20:01
any reason why these getters need to use out-param
no longer working on chromium
2012/02/22 17:27:24
Thanks for pointing out, I was assuming the code i
| |
157 }; | 166 }; |
158 | 167 |
159 #endif // MEDIA_AUDIO_AUDIO_IO_H_ | 168 #endif // MEDIA_AUDIO_AUDIO_IO_H_ |
OLD | NEW |