summaryrefslogtreecommitdiffstats
path: root/media/audio/linux/audio_manager_linux.h
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 19:25:01 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 19:25:01 +0000
commit66e3905287330abff21e82db183ef87f63808f0d (patch)
treed0636f5eb315414a07403aa043de1fd4c10f203f /media/audio/linux/audio_manager_linux.h
parentee01e6641130a8d8693fab9f6c876a8e7589ad42 (diff)
downloadchromium_src-66e3905287330abff21e82db183ef87f63808f0d.zip
chromium_src-66e3905287330abff21e82db183ef87f63808f0d.tar.gz
chromium_src-66e3905287330abff21e82db183ef87f63808f0d.tar.bz2
Third attempt at http://codereview.chromium.org/115276
Review URL: http://codereview.chromium.org/115645 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/audio_manager_linux.h')
-rw-r--r--media/audio/linux/audio_manager_linux.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/media/audio/linux/audio_manager_linux.h b/media/audio/linux/audio_manager_linux.h
new file mode 100644
index 0000000..5b369a1
--- /dev/null
+++ b/media/audio/linux/audio_manager_linux.h
@@ -0,0 +1,32 @@
+// Copyright (c) 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.
+
+#ifndef MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
+#define MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_
+
+#include "base/thread.h"
+#include "media/audio/audio_output.h"
+
+class AudioManagerLinux : public AudioManager {
+ public:
+ AudioManagerLinux();
+
+ // Implementation of AudioManager.
+ virtual bool HasAudioDevices();
+ virtual AudioOutputStream* MakeAudioStream(Format format, int channels,
+ int sample_rate,
+ char bits_per_sample);
+ virtual void MuteAll();
+ virtual void UnMuteAll();
+ virtual const void* GetLastMockBuffer();
+
+ private:
+ // Friend function for invoking the private destructor at exit.
+ friend void DestroyAudioManagerLinux(void*);
+ virtual ~AudioManagerLinux();
+
+ DISALLOW_COPY_AND_ASSIGN(AudioManagerLinux);
+};
+
+#endif // MEDIA_AUDIO_LINUX_AUDIO_MANAGER_LINUX_H_