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

Unified Diff: media/audio/audio_manager_base.h

Issue 11233023: Handle audio device changes on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments! Created 8 years, 2 months 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 c12b0103caf53cd39f73a6e16f516aaad0e05f3a..92a479c7cb7d5416676fb49fa86ddcd2d2667935 100644
--- a/media/audio/audio_manager_base.h
+++ b/media/audio/audio_manager_base.h
@@ -7,6 +7,7 @@
#include <map>
#include <string>
+#include <utility>
#include "base/atomic_ref_count.h"
#include "base/compiler_specific.h"
@@ -122,8 +123,8 @@ class MEDIA_EXPORT AudioManagerBase : public AudioManager {
// TODO(dalecurtis): This must change to map both input and output parameters
// to a single dispatcher, otherwise on a device state change we'll just get
// the exact same invalid dispatcher.
- typedef std::map<AudioParameters, scoped_refptr<AudioOutputDispatcher>,
- AudioParameters::Compare>
+ typedef std::map<std::pair<AudioParameters, AudioParameters>,
+ scoped_refptr<AudioOutputDispatcher> >
AudioOutputDispatchersMap;
// Shuts down the audio thread and releases all the audio output dispatchers

Powered by Google App Engine
This is Rietveld 408576698