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

Unified Diff: media/audio/audio_manager_base.h

Issue 5158003: Implement AudioOutputProxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 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
Index: media/audio/audio_manager_base.h
diff --git a/media/audio/audio_manager_base.h b/media/audio/audio_manager_base.h
index 96659823be9269e475b1a68868837c8ecafc9c3c..da25eefa72d0c9a8c877fc8360957217d4654fc6 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -5,9 +5,13 @@
#ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
#define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
+#include <map>
+
#include "base/thread.h"
#include "media/audio/audio_manager.h"
+class AudioOutputDispatcher;
+
// AudioManagerBase provides AudioManager functions common for all platforms.
class AudioManagerBase : public AudioManager {
public:
@@ -19,8 +23,15 @@ class AudioManagerBase : public AudioManager {
virtual string16 GetAudioInputDeviceModel();
+ virtual AudioOutputStream* MakeAudioOutputStreamProxy(
+ const AudioParameters& params);
+
protected:
- virtual ~AudioManagerBase() {}
+ virtual ~AudioManagerBase();
+
+ typedef std::map<AudioParameters, scoped_refptr<AudioOutputDispatcher>,
+ AudioParameters::CompareAudioParams>
+ AudioOutputDispatchersMap;
bool initialized() { return initialized_; }
@@ -30,6 +41,8 @@ class AudioManagerBase : public AudioManager {
bool initialized_;
+ AudioOutputDispatchersMap output_dispatchers_;
+
DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
};

Powered by Google App Engine
This is Rietveld 408576698