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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 | 49 |
50 AudioManagerOpenBSD::~AudioManagerOpenBSD() { | 50 AudioManagerOpenBSD::~AudioManagerOpenBSD() { |
51 Shutdown(); | 51 Shutdown(); |
52 } | 52 } |
53 | 53 |
54 void AudioManagerOpenBSD::Init() { | 54 void AudioManagerOpenBSD::Init() { |
55 AudioManagerBase::Init(); | 55 AudioManagerBase::Init(); |
56 } | 56 } |
57 | 57 |
58 void AudioManagerOpenBSD::MuteAll() { | |
59 NOTIMPLEMENTED(); | |
60 } | |
61 | |
62 void AudioManagerOpenBSD::UnMuteAll() { | |
63 NOTIMPLEMENTED(); | |
64 } | |
65 | |
66 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream( | 58 AudioOutputStream* AudioManagerOpenBSD::MakeLinearOutputStream( |
67 const AudioParameters& params) { | 59 const AudioParameters& params) { |
68 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); | 60 DCHECK_EQ(AudioParameters::AUDIO_PCM_LINEAR, params.format); |
69 return MakeOutputStream(params); | 61 return MakeOutputStream(params); |
70 } | 62 } |
71 | 63 |
72 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream( | 64 AudioOutputStream* AudioManagerOpenBSD::MakeLowLatencyOutputStream( |
73 const AudioParameters& params) { | 65 const AudioParameters& params) { |
74 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); | 66 DCHECK_EQ(AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format); |
75 return MakeOutputStream(params); | 67 return MakeOutputStream(params); |
(...skipping 24 matching lines...) Expand all Loading... |
100 NOTIMPLEMENTED(); | 92 NOTIMPLEMENTED(); |
101 return NULL; | 93 return NULL; |
102 } | 94 } |
103 | 95 |
104 // static | 96 // static |
105 AudioManager* CreateAudioManager() { | 97 AudioManager* CreateAudioManager() { |
106 return new AudioManagerOpenBSD(); | 98 return new AudioManagerOpenBSD(); |
107 } | 99 } |
108 | 100 |
109 } // namespace media | 101 } // namespace media |
OLD | NEW |