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" | 9 #include "media/audio/audio_parameters.h" |
10 #include "media/base/audio_fifo.h" | 10 #include "media/base/audio_fifo.h" |
11 #include "media/base/audio_hardware_config.h" | 11 #include "media/base/audio_hardware_config.h" |
12 #include "third_party/WebKit/public/web/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. |
22 // static | 22 // static |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 return 1.0; | 146 return 1.0; |
147 } | 147 } |
148 | 148 |
149 void WebRtcLocalAudioSourceProvider::SetSinkParamsForTesting( | 149 void WebRtcLocalAudioSourceProvider::SetSinkParamsForTesting( |
150 const media::AudioParameters& sink_params) { | 150 const media::AudioParameters& sink_params) { |
151 DCHECK(thread_checker_.CalledOnValidThread()); | 151 DCHECK(thread_checker_.CalledOnValidThread()); |
152 sink_params_ = sink_params; | 152 sink_params_ = sink_params; |
153 } | 153 } |
154 | 154 |
155 } // namespace content | 155 } // namespace content |
OLD | NEW |