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

Side by Side Diff: media/audio/cras/audio_manager_cras.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/audio_parameters.cc ('k') | media/audio/fake_audio_manager.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/cras/audio_manager_cras.h" 5 #include "media/audio/cras/audio_manager_cras.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/nix/xdg_util.h" 10 #include "base/nix/xdg_util.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 input_channels = input_params.input_channels(); 118 input_channels = input_params.input_channels();
119 buffer_size = input_params.frames_per_buffer(); 119 buffer_size = input_params.frames_per_buffer();
120 } 120 }
121 121
122 int user_buffer_size = GetUserBufferSize(); 122 int user_buffer_size = GetUserBufferSize();
123 if (user_buffer_size) 123 if (user_buffer_size)
124 buffer_size = user_buffer_size; 124 buffer_size = user_buffer_size;
125 125
126 return AudioParameters( 126 return AudioParameters(
127 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, 127 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels,
128 sample_rate, bits_per_sample, buffer_size); 128 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS);
129 } 129 }
130 130
131 AudioOutputStream* AudioManagerCras::MakeOutputStream( 131 AudioOutputStream* AudioManagerCras::MakeOutputStream(
132 const AudioParameters& params) { 132 const AudioParameters& params) {
133 return new CrasUnifiedStream(params, this); 133 return new CrasUnifiedStream(params, this);
134 } 134 }
135 135
136 AudioInputStream* AudioManagerCras::MakeInputStream( 136 AudioInputStream* AudioManagerCras::MakeInputStream(
137 const AudioParameters& params, const std::string& device_id) { 137 const AudioParameters& params, const std::string& device_id) {
138 return new CrasInputStream(params, this, device_id); 138 return new CrasInputStream(params, this, device_id);
139 } 139 }
140 140
141 } // namespace media 141 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_parameters.cc ('k') | media/audio/fake_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698