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

Side by Side Diff: media/audio/mac/audio_manager_mac.h

Issue 11338024: Handle audio device changes on Mac (Take 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Naming, comment removal. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/mac/audio_low_latency_output_mac.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 5 #ifndef MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 6 #define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h"
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
11 12
12 namespace media { 13 namespace media {
13 14
14 // Mac OS X implementation of the AudioManager singleton. This class is internal 15 // Mac OS X implementation of the AudioManager singleton. This class is internal
15 // to the audio output and only internal users can call methods not exposed by 16 // to the audio output and only internal users can call methods not exposed by
16 // the AudioManager class. 17 // the AudioManager class.
17 class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase { 18 class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase {
18 public: 19 public:
(...skipping 12 matching lines...) Expand all
31 const AudioParameters& params) OVERRIDE; 32 const AudioParameters& params) OVERRIDE;
32 virtual AudioInputStream* MakeLinearInputStream( 33 virtual AudioInputStream* MakeLinearInputStream(
33 const AudioParameters& params, const std::string& device_id) OVERRIDE; 34 const AudioParameters& params, const std::string& device_id) OVERRIDE;
34 virtual AudioInputStream* MakeLowLatencyInputStream( 35 virtual AudioInputStream* MakeLowLatencyInputStream(
35 const AudioParameters& params, const std::string& device_id) OVERRIDE; 36 const AudioParameters& params, const std::string& device_id) OVERRIDE;
36 37
37 protected: 38 protected:
38 virtual ~AudioManagerMac(); 39 virtual ~AudioManagerMac();
39 40
40 private: 41 private:
42 // Listens for output device changes.
43 base::Closure listener_cb_;
44
41 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac); 45 DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
42 }; 46 };
43 47
44 } // namespace media 48 } // namespace media
45 49
46 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_ 50 #endif // MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_low_latency_output_mac.cc ('k') | media/audio/mac/audio_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698