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

Side by Side Diff: media/audio/audio_parameters.cc

Issue 99033003: Enable platform echo cancellation through the AudioRecord path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PlatformEffects, unittests and clean up. Created 7 years 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 (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/audio_parameters.h" 5 #include "media/audio/audio_parameters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "media/base/limits.h" 8 #include "media/base/limits.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return base::TimeDelta::FromMicroseconds( 93 return base::TimeDelta::FromMicroseconds(
94 frames_per_buffer_ * base::Time::kMicrosecondsPerSecond / 94 frames_per_buffer_ * base::Time::kMicrosecondsPerSecond /
95 static_cast<float>(sample_rate_)); 95 static_cast<float>(sample_rate_));
96 } 96 }
97 97
98 void AudioParameters::SetDiscreteChannels(int channels) { 98 void AudioParameters::SetDiscreteChannels(int channels) {
99 channel_layout_ = CHANNEL_LAYOUT_DISCRETE; 99 channel_layout_ = CHANNEL_LAYOUT_DISCRETE;
100 channels_ = channels; 100 channels_ = channels;
101 } 101 }
102 102
103
104 void AudioParameters::SetPlatformEffects(const PlatformEffects& effects) {
105 effects_ = effects;
106 }
107
103 } // namespace media 108 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698