Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Side by Side Diff: content/renderer/media/webrtc_local_audio_source_provider.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_renderer.cc ('k') | content/renderer/media/webrtc_local_audio_source_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698