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

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

Issue 99033003: Enable platform echo cancellation through the AudioRecord path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and remove SetDiscreteChannels. 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 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 "media/audio/fake_audio_manager.h" 5 #include "media/audio/fake_audio_manager.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 FakeAudioManager::FakeAudioManager(AudioLogFactory* audio_log_factory) 9 FakeAudioManager::FakeAudioManager(AudioLogFactory* audio_log_factory)
10 : AudioManagerBase(audio_log_factory) {} 10 : AudioManagerBase(audio_log_factory) {}
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 if (input_params.IsValid()) { 56 if (input_params.IsValid()) {
57 sample_rate = input_params.sample_rate(); 57 sample_rate = input_params.sample_rate();
58 bits_per_sample = input_params.bits_per_sample(); 58 bits_per_sample = input_params.bits_per_sample();
59 channel_layout = input_params.channel_layout(); 59 channel_layout = input_params.channel_layout();
60 input_channels = input_params.input_channels(); 60 input_channels = input_params.input_channels();
61 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size); 61 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size);
62 } 62 }
63 63
64 return AudioParameters( 64 return AudioParameters(
65 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, 65 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels,
66 sample_rate, bits_per_sample, buffer_size); 66 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS);
67 } 67 }
68 68
69 } // namespace media 69 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698