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

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

Issue 1301003: OpenBSD media/audio support (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
(Empty)
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
Evan Martin 2010/03/25 21:42:08 2010
Peter Valchev 2010/03/25 21:47:29 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/audio/openbsd/audio_manager_openbsd.h"
6
7 #include "base/at_exit.h"
8 #include "base/logging.h"
9
10 namespace {
11 AudioManagerOpenBSD* g_audio_manager = NULL;
12 } // namespace
13
14 // Implementation of AudioManager.
15 bool AudioManagerOpenBSD::HasAudioDevices() {
16 NOTIMPLEMENTED();
17 return false;
18 }
19
20 AudioOutputStream* AudioManagerOpenBSD::MakeAudioStream(Format format,
21 int channels,
22 int sample_rate,
23 char bits_per_sample) {
24 NOTIMPLEMENTED();
25 return NULL;
26 }
27
28 AudioManagerOpenBSD::AudioManagerOpenBSD() {
29 }
30
31 AudioManagerOpenBSD::~AudioManagerOpenBSD() {
32 }
33
34 void AudioManagerOpenBSD::Init() {
35 }
36
37 void AudioManagerOpenBSD::MuteAll() {
38 NOTIMPLEMENTED();
39 }
40
41 void AudioManagerOpenBSD::UnMuteAll() {
42 NOTIMPLEMENTED();
43 }
44
45 void DestroyAudioManagerOpenBSD(void* not_used) {
46 delete g_audio_manager;
47 g_audio_manager = NULL;
48 }
49
50 AudioManager* AudioManager::GetAudioManager() {
51 if (!g_audio_manager) {
52 g_audio_manager = new AudioManagerOpenBSD();
53 g_audio_manager->Init();
54 base::AtExitManager::RegisterCallback(&DestroyAudioManagerOpenBSD, NULL);
55 }
56 return g_audio_manager;
57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698