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

Side by Side Diff: media/audio/freebsd/audio_manager_freebsd.cc

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « media/audio/freebsd/audio_manager_freebsd.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
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/freebsd/audio_manager_freebsd.h"
6
7 #include "base/at_exit.h"
8 #include "base/logging.h"
9 //#include "media/audio/fake_audio_output_stream.h"
10 //#include "media/audio/linux/alsa_output.h"
11 //#include "media/audio/linux/alsa_wrapper.h"
12
13 namespace {
14 AudioManagerFreeBSD* g_audio_manager = NULL;
15 } // namespace
16
17 // Implementation of AudioManager.
18 bool AudioManagerFreeBSD::HasAudioDevices() {
19 NOTIMPLEMENTED();
20 return false;
21 }
22
23 AudioOutputStream* AudioManagerFreeBSD::MakeAudioStream(Format format,
24 int channels,
25 int sample_rate,
26 char bits_per_sample) {
27 NOTIMPLEMENTED();
28 return NULL;
29 }
30
31 AudioManagerFreeBSD::AudioManagerFreeBSD() {
32 }
33
34 AudioManagerFreeBSD::~AudioManagerFreeBSD() {
35 }
36
37 void AudioManagerFreeBSD::Init() {
38 }
39
40 void AudioManagerFreeBSD::MuteAll() {
41 NOTIMPLEMENTED();
42 }
43
44 void AudioManagerFreeBSD::UnMuteAll() {
45 NOTIMPLEMENTED();
46 }
47
48 // TODO(ajwong): Collapse this with the windows version.
49 void DestroyAudioManagerFreeBSD(void* not_used) {
50 delete g_audio_manager;
51 g_audio_manager = NULL;
52 }
53
54 AudioManager* AudioManager::GetAudioManager() {
55 if (!g_audio_manager) {
56 g_audio_manager = new AudioManagerFreeBSD();
57 g_audio_manager->Init();
58 base::AtExitManager::RegisterCallback(&DestroyAudioManagerFreeBSD, NULL);
59 }
60 return g_audio_manager;
61 }
OLDNEW
« no previous file with comments | « media/audio/freebsd/audio_manager_freebsd.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698