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

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

Issue 15979015: Reland 15721002: Hook up the device selection to the WebAudio live audio (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed the comments. Created 7 years, 6 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 | Annotate | Revision Log
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 Shutdown(); 84 Shutdown();
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& input_device_id) {
95 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); 96 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format);
96 return MakeOutputStream(params); 97 return MakeOutputStream(params);
97 } 98 }
98 99
99 AudioInputStream* AudioManagerOpenBSD::MakeLinearInputStream( 100 AudioInputStream* AudioManagerOpenBSD::MakeLinearInputStream(
100 const AudioParameters& params, const std::string& device_id) { 101 const AudioParameters& params, const std::string& device_id) {
101 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); 102 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format);
102 NOTIMPLEMENTED(); 103 NOTIMPLEMENTED();
103 return NULL; 104 return NULL;
104 } 105 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return NULL; 145 return NULL;
145 } 146 }
146 147
147 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse; 148 // TODO(xians): Merge AudioManagerOpenBSD with AudioManagerPulse;
148 // static 149 // static
149 AudioManager* CreateAudioManager() { 150 AudioManager* CreateAudioManager() {
150 return new AudioManagerOpenBSD(); 151 return new AudioManagerOpenBSD();
151 } 152 }
152 153
153 } // namespace media 154 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698