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

Unified Diff: media/audio/openbsd/audio_manager_openbsd.h

Issue 8499029: make pulseaudio available for all posix platforms because it's not linux only (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: don't include pulse on windows Created 9 years, 1 month 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/linux/pulse_output.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/openbsd/audio_manager_openbsd.h
diff --git a/media/audio/openbsd/audio_manager_openbsd.h b/media/audio/openbsd/audio_manager_openbsd.h
index b9f19c6e85f9cab0fcc4ab3f0565d94c93659dc2..e768524d9402920e12114a193090d6b8c24ffc2b 100644
--- a/media/audio/openbsd/audio_manager_openbsd.h
+++ b/media/audio/openbsd/audio_manager_openbsd.h
@@ -5,27 +5,37 @@
#ifndef MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
#define MEDIA_AUDIO_OPENBSD_AUDIO_MANAGER_OPENBSD_H_
-#include "base/basictypes.h"
+#include <set>
+
+#include "base/compiler_specific.h"
#include "media/audio/audio_manager_base.h"
-class AudioManagerOpenBSD : public AudioManagerBase {
+class MEDIA_EXPORT AudioManagerOpenBSD : public AudioManagerBase {
public:
AudioManagerOpenBSD();
+ // Call before using a newly created AudioManagerOpenBSD instance.
+ virtual void Init() OVERRIDE;
+
// Implementation of AudioManager.
virtual bool HasAudioOutputDevices() OVERRIDE;
virtual bool HasAudioInputDevices() OVERRIDE;
virtual AudioOutputStream* MakeAudioOutputStream(
const AudioParameters& params) OVERRIDE;
- virtual AudioInputStream* MakeAudioInputStream(
- const AudioParameters& params) OVERRIDE;
- virtual bool IsRecordingInProgress() OVERRIDE;
+ virtual AudioInputStream* MakeAudioInputStream(const AudioParameters& params)
+ OVERRIDE;
+
virtual void MuteAll() OVERRIDE;
virtual void UnMuteAll() OVERRIDE;
- private:
+ virtual void ReleaseOutputStream(AudioOutputStream* stream);
+
+ protected:
virtual ~AudioManagerOpenBSD();
+ private:
+ std::set<AudioOutputStream*> active_streams_;
+
DISALLOW_COPY_AND_ASSIGN(AudioManagerOpenBSD);
};
« no previous file with comments | « media/audio/linux/pulse_output.cc ('k') | media/audio/openbsd/audio_manager_openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698