| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ | 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ |
| 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ | 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "media/audio/audio_manager_base.h" | 9 #include "media/audio/audio_manager_base.h" |
| 10 | 10 |
| 11 namespace chromecast { | 11 namespace chromecast { |
| 12 | 12 |
| 13 class TaskRunnerImpl; | 13 class TaskRunnerImpl; |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 class MediaPipelineBackend; | 17 class MediaPipelineBackend; |
| 18 class MediaPipelineBackendManager; | |
| 19 struct MediaPipelineDeviceParams; | 18 struct MediaPipelineDeviceParams; |
| 20 | 19 |
| 21 class CastAudioManager : public ::media::AudioManagerBase { | 20 class CastAudioManager : public ::media::AudioManagerBase { |
| 22 public: | 21 public: |
| 23 // This class does not take ownership of |backend_manager| | 22 explicit CastAudioManager(::media::AudioLogFactory* audio_log_factory); |
| 24 CastAudioManager(::media::AudioLogFactory* audio_log_factory, | |
| 25 MediaPipelineBackendManager* backend_manager); | |
| 26 ~CastAudioManager() override; | 23 ~CastAudioManager() override; |
| 27 | 24 |
| 28 // AudioManager implementation. | 25 // AudioManager implementation. |
| 29 bool HasAudioOutputDevices() override; | 26 bool HasAudioOutputDevices() override; |
| 30 bool HasAudioInputDevices() override; | 27 bool HasAudioInputDevices() override; |
| 31 void ShowAudioInputSettings() override; | 28 void ShowAudioInputSettings() override; |
| 32 void GetAudioInputDeviceNames( | 29 void GetAudioInputDeviceNames( |
| 33 ::media::AudioDeviceNames* device_names) override; | 30 ::media::AudioDeviceNames* device_names) override; |
| 34 ::media::AudioParameters GetInputStreamParameters( | 31 ::media::AudioParameters GetInputStreamParameters( |
| 35 const std::string& device_id) override; | 32 const std::string& device_id) override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 49 ::media::AudioInputStream* MakeLinearInputStream( | 46 ::media::AudioInputStream* MakeLinearInputStream( |
| 50 const ::media::AudioParameters& params, | 47 const ::media::AudioParameters& params, |
| 51 const std::string& device_id) override; | 48 const std::string& device_id) override; |
| 52 ::media::AudioInputStream* MakeLowLatencyInputStream( | 49 ::media::AudioInputStream* MakeLowLatencyInputStream( |
| 53 const ::media::AudioParameters& params, | 50 const ::media::AudioParameters& params, |
| 54 const std::string& device_id) override; | 51 const std::string& device_id) override; |
| 55 ::media::AudioParameters GetPreferredOutputStreamParameters( | 52 ::media::AudioParameters GetPreferredOutputStreamParameters( |
| 56 const std::string& output_device_id, | 53 const std::string& output_device_id, |
| 57 const ::media::AudioParameters& input_params) override; | 54 const ::media::AudioParameters& input_params) override; |
| 58 | 55 |
| 59 MediaPipelineBackendManager* const backend_manager_; | |
| 60 | |
| 61 DISALLOW_COPY_AND_ASSIGN(CastAudioManager); | 56 DISALLOW_COPY_AND_ASSIGN(CastAudioManager); |
| 62 }; | 57 }; |
| 63 | 58 |
| 64 } // namespace media | 59 } // namespace media |
| 65 } // namespace chromecast | 60 } // namespace chromecast |
| 66 | 61 |
| 67 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ | 62 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ |
| OLD | NEW |