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

Side by Side Diff: media/audio/cras/audio_manager_cras.cc

Issue 1864483002: Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finished up for review. Created 4 years, 7 months 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/cras/audio_manager_cras.h" 5 #include "media/audio/cras/audio_manager_cras.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 AudioOutputStream* AudioManagerCras::MakeLinearOutputStream( 221 AudioOutputStream* AudioManagerCras::MakeLinearOutputStream(
222 const AudioParameters& params) { 222 const AudioParameters& params) {
223 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format()); 223 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format());
224 return MakeOutputStream(params); 224 return MakeOutputStream(params);
225 } 225 }
226 226
227 AudioOutputStream* AudioManagerCras::MakeLowLatencyOutputStream( 227 AudioOutputStream* AudioManagerCras::MakeLowLatencyOutputStream(
228 const AudioParameters& params, 228 const AudioParameters& params,
229 const std::string& device_id) { 229 const std::string& device_id,
230 const StatisticsCallback& statistics_callback) {
230 DLOG_IF(ERROR, !device_id.empty()) << "Not implemented!"; 231 DLOG_IF(ERROR, !device_id.empty()) << "Not implemented!";
231 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format()); 232 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format());
232 // TODO(dgreid): Open the correct input device for unified IO. 233 // TODO(dgreid): Open the correct input device for unified IO.
233 return MakeOutputStream(params); 234 return MakeOutputStream(params);
234 } 235 }
235 236
236 AudioInputStream* AudioManagerCras::MakeLinearInputStream( 237 AudioInputStream* AudioManagerCras::MakeLinearInputStream(
237 const AudioParameters& params, const std::string& device_id) { 238 const AudioParameters& params, const std::string& device_id) {
238 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format()); 239 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format());
239 return MakeInputStream(params, device_id); 240 return MakeInputStream(params, device_id);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 case 24: 291 case 24:
291 return SND_PCM_FORMAT_S24; 292 return SND_PCM_FORMAT_S24;
292 case 32: 293 case 32:
293 return SND_PCM_FORMAT_S32; 294 return SND_PCM_FORMAT_S32;
294 default: 295 default:
295 return SND_PCM_FORMAT_UNKNOWN; 296 return SND_PCM_FORMAT_UNKNOWN;
296 } 297 }
297 } 298 }
298 299
299 } // namespace media 300 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698