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

Side by Side Diff: media/audio/openbsd/audio_manager_openbsd.cc

Issue 163343002: Reland 153623004: Remove the unified IO code on the browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed the cras bot Created 6 years, 10 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
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | media/audio/pulse/audio_manager_pulse.h » ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream( 87 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream(
88 const AudioParameters& params) { 88 const AudioParameters& params) {
89 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); 89 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format);
90 return MakeOutputStream(params); 90 return MakeOutputStream(params);
91 } 91 }
92 92
93 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream( 93 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream(
94 const AudioParameters& params, 94 const AudioParameters& params,
95 const std::string& device_id, 95 const std::string& device_id) {
96 const std::string& input_device_id) {
97 DLOG_IF(ERROR, !device_id.empty()) << "Not implemented!"; 96 DLOG_IF(ERROR, !device_id.empty()) << "Not implemented!";
98 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); 97 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format);
99 return MakeOutputStream(params); 98 return MakeOutputStream(params);
100 } 99 }
101 100
102 AudioInputStream* AudioManagerOpenBSD::MakeLinearInputStream( 101 AudioInputStream* AudioManagerOpenBSD::MakeLinearInputStream(
103 const AudioParameters& params, const std::string& device_id) { 102 const AudioParameters& params, const std::string& device_id) {
104 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); 103 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format);
105 NOTIMPLEMENTED(); 104 NOTIMPLEMENTED();
106 return NULL; 105 return NULL;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return NULL; 149 return NULL;
151 } 150 }
152 151
153 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse; 152 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse;
154 // static 153 // static
155 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) { 154 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) {
156 return new AudioManagerOpenBSD(audio_log_factory); 155 return new AudioManagerOpenBSD(audio_log_factory);
157 } 156 }
158 157
159 } // namespace media 158 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | media/audio/pulse/audio_manager_pulse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698