| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |