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 #include "media/audio/virtual_audio_input_stream.h" | 5 #include "media/audio/virtual_audio_input_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/message_loop/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
13 #include "media/audio/virtual_audio_output_stream.h" | 13 #include "media/audio/virtual_audio_output_stream.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 // LoopbackAudioConverter works similar to AudioConverter and converts input | 17 // LoopbackAudioConverter works similar to AudioConverter and converts input |
18 // streams to different audio parameters. Then, the LoopbackAudioConverter can | 18 // streams to different audio parameters. Then, the LoopbackAudioConverter can |
19 // be used as an input to another AudioConverter. This allows us to | 19 // be used as an input to another AudioConverter. This allows us to |
20 // use converted audio from AudioOutputStreams as input to an AudioConverter. | 20 // use converted audio from AudioOutputStreams as input to an AudioConverter. |
21 // For example, this allows converting multiple streams into a common format and | 21 // For example, this allows converting multiple streams into a common format and |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return 1.0; | 179 return 1.0; |
180 } | 180 } |
181 | 181 |
182 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {} | 182 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {} |
183 | 183 |
184 bool VirtualAudioInputStream::GetAutomaticGainControl() { | 184 bool VirtualAudioInputStream::GetAutomaticGainControl() { |
185 return false; | 185 return false; |
186 } | 186 } |
187 | 187 |
188 } // namespace media | 188 } // namespace media |
OLD | NEW |