diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:47:46 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 17:47:46 +0000 |
commit | 66556c41055ac04e7adbbf47b2578e2ca389a1be (patch) | |
tree | b7aa9c1a5cd73936ccb3c389594d5276c20fa27c /media/audio/linux/audio_manager_linux.h | |
parent | ea7da3ced5cc74eb581d0d7f87f21320b4fae920 (diff) | |
download | chromium_src-66556c41055ac04e7adbbf47b2578e2ca389a1be.zip chromium_src-66556c41055ac04e7adbbf47b2578e2ca389a1be.tar.gz chromium_src-66556c41055ac04e7adbbf47b2578e2ca389a1be.tar.bz2 |
Reapply http://codereview.chromium.org/115276
Review URL: http://codereview.chromium.org/115638
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/audio_manager_linux.h')
-rw-r--r-- | media/audio/linux/audio_manager_linux.h | 32 |
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_ |