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

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

Issue 11175066: Replace AudioManager::Init() with InitializeOnAudioThread(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 8 years, 1 month 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
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | 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 "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
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
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
OLDNEW
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698