OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |