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

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

Issue 115413002: Enable platform echo cancellation through the AudioRecord path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « media/audio/cras/audio_manager_cras.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace { 9 namespace {
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (input_params.IsValid()) { 63 if (input_params.IsValid()) {
64 sample_rate = input_params.sample_rate(); 64 sample_rate = input_params.sample_rate();
65 bits_per_sample = input_params.bits_per_sample(); 65 bits_per_sample = input_params.bits_per_sample();
66 channel_layout = input_params.channel_layout(); 66 channel_layout = input_params.channel_layout();
67 input_channels = input_params.input_channels(); 67 input_channels = input_params.input_channels();
68 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size); 68 buffer_size = std::min(input_params.frames_per_buffer(), buffer_size);
69 } 69 }
70 70
71 return AudioParameters( 71 return AudioParameters(
72 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, 72 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels,
73 sample_rate, bits_per_sample, buffer_size); 73 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS);
74 } 74 }
75 75
76 AudioParameters FakeAudioManager::GetInputStreamParameters( 76 AudioParameters FakeAudioManager::GetInputStreamParameters(
77 const std::string& device_id) { 77 const std::string& device_id) {
78 return AudioParameters( 78 return AudioParameters(
79 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, 79 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO,
80 kDefaultSampleRate, 16, kDefaultInputBufferSize); 80 kDefaultSampleRate, 16, kDefaultInputBufferSize);
81 } 81 }
82 82
83 } // namespace media 83 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/cras/audio_manager_cras.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698