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_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
12 #include "media/audio/virtual_audio_output_stream.h" | 12 #include "media/audio/virtual_audio_output_stream.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 | 15 |
16 // LoopbackAudioConverter works similar to AudioConverter and converts input | 16 // LoopbackAudioConverter works similar to AudioConverter and converts input |
17 // streams to different audio parameters. Then, the LoopbackAudioConverter can | 17 // streams to different audio parameters. Then, the LoopbackAudioConverter can |
18 // be used as an input to another AudioConverter. This allows us to | 18 // be used as an input to another AudioConverter. This allows us to |
19 // use converted audio from AudioOutputStreams as input to an AudioConverter. | 19 // use converted audio from AudioOutputStreams as input to an AudioConverter. |
20 // For example, this allows converting multiple streams into a common format and | 20 // For example, this allows converting multiple streams into a common format and |
21 // using the converted audio as input to another AudioConverter (i.e. a mixer). | 21 // using the converted audio as input to another AudioConverter (i.e. a mixer). |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 return 1.0; | 163 return 1.0; |
164 } | 164 } |
165 | 165 |
166 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {} | 166 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {} |
167 | 167 |
168 bool VirtualAudioInputStream::GetAutomaticGainControl() { | 168 bool VirtualAudioInputStream::GetAutomaticGainControl() { |
169 return false; | 169 return false; |
170 } | 170 } |
171 | 171 |
172 } // namespace media | 172 } // namespace media |
OLD | NEW |