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/openbsd/audio_manager_openbsd.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/mac/audio_manager_mac.cc ('k') | media/audio/pulse/audio_manager_pulse.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 (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/openbsd/audio_manager_openbsd.h" 5 #include "media/audio/openbsd/audio_manager_openbsd.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 input_channels = input_params.input_channels(); 132 input_channels = input_params.input_channels();
133 buffer_size = std::min(buffer_size, input_params.frames_per_buffer()); 133 buffer_size = std::min(buffer_size, input_params.frames_per_buffer());
134 } 134 }
135 135
136 int user_buffer_size = GetUserBufferSize(); 136 int user_buffer_size = GetUserBufferSize();
137 if (user_buffer_size) 137 if (user_buffer_size)
138 buffer_size = user_buffer_size; 138 buffer_size = user_buffer_size;
139 139
140 return AudioParameters( 140 return AudioParameters(
141 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels, 141 AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, input_channels,
142 sample_rate, bits_per_sample, buffer_size); 142 sample_rate, bits_per_sample, buffer_size, AudioParameters::NO_EFFECTS);
143 } 143 }
144 144
145 AudioOutputStream* AudioManagerOpenBSD::MakeOutputStream( 145 AudioOutputStream* AudioManagerOpenBSD::MakeOutputStream(
146 const AudioParameters& params) { 146 const AudioParameters& params) {
147 if (pulse_library_is_initialized_) 147 if (pulse_library_is_initialized_)
148 return new PulseAudioOutputStream(params, this); 148 return new PulseAudioOutputStream(params, this);
149 149
150 return NULL; 150 return NULL;
151 } 151 }
152 152
153 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse; 153 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse;
154 // static 154 // static
155 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) { 155 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) {
156 return new AudioManagerOpenBSD(audio_log_factory); 156 return new AudioManagerOpenBSD(audio_log_factory);
157 } 157 }
158 158
159 } // namespace media 159 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/audio/pulse/audio_manager_pulse.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698