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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/freebsd/audio_manager_freebsd.h ('k') | media/media.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/freebsd/audio_manager_freebsd.cc
===================================================================
--- media/audio/freebsd/audio_manager_freebsd.cc (revision 0)
+++ media/audio/freebsd/audio_manager_freebsd.cc (revision 0)
@@ -0,0 +1,61 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/audio/freebsd/audio_manager_freebsd.h"
+
+#include "base/at_exit.h"
+#include "base/logging.h"
+//#include "media/audio/fake_audio_output_stream.h"
+//#include "media/audio/linux/alsa_output.h"
+//#include "media/audio/linux/alsa_wrapper.h"
+
+namespace {
+AudioManagerFreeBSD* g_audio_manager = NULL;
+} // namespace
+
+// Implementation of AudioManager.
+bool AudioManagerFreeBSD::HasAudioDevices() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+AudioOutputStream* AudioManagerFreeBSD::MakeAudioStream(Format format,
+ int channels,
+ int sample_rate,
+ char bits_per_sample) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+AudioManagerFreeBSD::AudioManagerFreeBSD() {
+}
+
+AudioManagerFreeBSD::~AudioManagerFreeBSD() {
+}
+
+void AudioManagerFreeBSD::Init() {
+}
+
+void AudioManagerFreeBSD::MuteAll() {
+ NOTIMPLEMENTED();
+}
+
+void AudioManagerFreeBSD::UnMuteAll() {
+ NOTIMPLEMENTED();
+}
+
+// TODO(ajwong): Collapse this with the windows version.
+void DestroyAudioManagerFreeBSD(void* not_used) {
+ delete g_audio_manager;
+ g_audio_manager = NULL;
+}
+
+AudioManager* AudioManager::GetAudioManager() {
+ if (!g_audio_manager) {
+ g_audio_manager = new AudioManagerFreeBSD();
+ g_audio_manager->Init();
+ base::AtExitManager::RegisterCallback(&DestroyAudioManagerFreeBSD, NULL);
+ }
+ return g_audio_manager;
+}
Property changes on: media/audio/freebsd/audio_manager_freebsd.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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