OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/media/webrtc_local_audio_source_provider.h" | 5 #include "content/renderer/media/webrtc_local_audio_source_provider.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/renderer/render_thread_impl.h" | 8 #include "content/renderer/render_thread_impl.h" |
9 #include "media/audio/audio_parameters.h" | |
10 #include "media/base/audio_fifo.h" | 9 #include "media/base/audio_fifo.h" |
11 #include "media/base/audio_hardware_config.h" | 10 #include "media/base/audio_hardware_config.h" |
| 11 #include "media/base/audio_parameters.h" |
12 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" | 12 #include "third_party/WebKit/public/platform/WebAudioSourceProviderClient.h" |
13 | 13 |
14 using blink::WebVector; | 14 using blink::WebVector; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 static const size_t kMaxNumberOfBuffers = 10; | 18 static const size_t kMaxNumberOfBuffers = 10; |
19 | 19 |
20 // Size of the buffer that WebAudio processes each time, it is the same value | 20 // Size of the buffer that WebAudio processes each time, it is the same value |
21 // as AudioNode::ProcessingSizeInFrames in WebKit. | 21 // as AudioNode::ProcessingSizeInFrames in WebKit. |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 return 1.0; | 144 return 1.0; |
145 } | 145 } |
146 | 146 |
147 void WebRtcLocalAudioSourceProvider::SetSinkParamsForTesting( | 147 void WebRtcLocalAudioSourceProvider::SetSinkParamsForTesting( |
148 const media::AudioParameters& sink_params) { | 148 const media::AudioParameters& sink_params) { |
149 sink_params_ = sink_params; | 149 sink_params_ = sink_params; |
150 } | 150 } |
151 | 151 |
152 } // namespace content | 152 } // namespace content |
OLD | NEW |