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

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 6d01c26892e02f1a3d1eed415c34d3bede608525..bf90bb8939c906841d535b317ec851ef01035200 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:
@@ -17,8 +21,19 @@ class AudioManagerBase : public AudioManager {
virtual MessageLoop* GetMessageLoop();
+ virtual AudioOutputStream* MakeAudioOutputStreamProxy(
scherkus (not reviewing) 2010/11/22 06:43:15 making sure are we using audio proxies on all plat
Sergey Ulanov 2010/11/23 19:51:46 It works on all platforms, not only linux.
+ AudioParameters params);
scherkus (not reviewing) 2010/11/22 06:43:15 ditto here
Sergey Ulanov 2010/11/23 19:51:46 Done.
+
protected:
- virtual ~AudioManagerBase() {}
+ virtual ~AudioManagerBase();
+
+ class CompareAudioParams {
scherkus (not reviewing) 2010/11/22 06:43:15 does it makes sense to declare this on AudioParame
Sergey Ulanov 2010/11/23 19:51:46 Done
+ public:
+ bool operator()(const AudioParameters& a, const AudioParameters& b) const;
+ };
+ typedef std::map<AudioParameters, scoped_refptr<AudioOutputDispatcher>,
+ CompareAudioParams>
+ AudioOutputDispatchersMap;
bool initialized() { return initialized_; }
@@ -28,6 +43,8 @@ class AudioManagerBase : public AudioManager {
bool initialized_;
+ AudioOutputDispatchersMap output_dispatchers_;
+
DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
};

Powered by Google App Engine
This is Rietveld 408576698