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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "media/audio/audio_output_dispatcher.h" | 9 #include "media/audio/audio_output_dispatcher.h" |
10 #if defined(USE_PULSEAUDIO) | 10 #if defined(USE_PULSEAUDIO) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 AudioManagerOpenBSD::AudioManagerOpenBSD() { | 46 AudioManagerOpenBSD::AudioManagerOpenBSD() { |
47 SetMaxOutputStreamsAllowed(kMaxOutputStreams); | 47 SetMaxOutputStreamsAllowed(kMaxOutputStreams); |
48 } | 48 } |
49 | 49 |
50 AudioManagerOpenBSD::~AudioManagerOpenBSD() { | 50 AudioManagerOpenBSD::~AudioManagerOpenBSD() { |
51 Shutdown(); | 51 Shutdown(); |
52 } | 52 } |
53 | 53 |
54 void AudioManagerOpenBSD::Init() { | |
55 AudioManagerBase::Init(); | |
56 } | |
57 | |
58 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream( | 54 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream( |
59 const AudioParameters& params) { | 55 const AudioParameters& params) { |
60 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); | 56 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); |
61 return MakeOutputStream(params); | 57 return MakeOutputStream(params); |
62 } | 58 } |
63 | 59 |
64 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream( | 60 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream( |
65 const AudioParameters& params) { | 61 const AudioParameters& params) { |
66 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); | 62 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); |
67 return MakeOutputStream(params); | 63 return MakeOutputStream(params); |
(...skipping 24 matching lines...) Expand all Loading... |
92 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
93 return NULL; | 89 return NULL; |
94 } | 90 } |
95 | 91 |
96 // static | 92 // static |
97 AudioManager* CreateAudioManager() { | 93 AudioManager* CreateAudioManager() { |
98 return new AudioManagerOpenBSD(); | 94 return new AudioManagerOpenBSD(); |
99 } | 95 } |
100 | 96 |
101 } // namespace media | 97 } // namespace media |
OLD | NEW |