| 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_AUDIO_MANAGER_BASE_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 public: | 31 public: |
| 32 ~AudioManagerBase() override; | 32 ~AudioManagerBase() override; |
| 33 | 33 |
| 34 // AudioManager: | 34 // AudioManager: |
| 35 base::string16 GetAudioInputDeviceModel() override; | 35 base::string16 GetAudioInputDeviceModel() override; |
| 36 void ShowAudioInputSettings() override; | 36 void ShowAudioInputSettings() override; |
| 37 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 37 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 38 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 38 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 39 AudioOutputStream* MakeAudioOutputStream( | 39 AudioOutputStream* MakeAudioOutputStream( |
| 40 const AudioParameters& params, | 40 const AudioParameters& params, |
| 41 const std::string& device_id) override; | 41 const std::string& device_id, |
| 42 const StatisticsCallback& statistics_callback) override; |
| 42 AudioInputStream* MakeAudioInputStream(const AudioParameters& params, | 43 AudioInputStream* MakeAudioInputStream(const AudioParameters& params, |
| 43 const std::string& device_id) override; | 44 const std::string& device_id) override; |
| 44 AudioOutputStream* MakeAudioOutputStreamProxy( | 45 AudioOutputStream* MakeAudioOutputStreamProxy( |
| 45 const AudioParameters& params, | 46 const AudioParameters& params, |
| 46 const std::string& device_id) override; | 47 const std::string& device_id) override; |
| 47 | 48 |
| 48 // Listeners will be notified on the GetTaskRunner() task runner. | 49 // Listeners will be notified on the GetTaskRunner() task runner. |
| 49 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 50 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
| 50 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; | 51 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; |
| 51 | 52 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 virtual void ReleaseInputStream(AudioInputStream* stream); | 67 virtual void ReleaseInputStream(AudioInputStream* stream); |
| 67 | 68 |
| 68 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy | 69 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 69 // name is also from |AUDIO_PCM_LINEAR|. | 70 // name is also from |AUDIO_PCM_LINEAR|. |
| 70 virtual AudioOutputStream* MakeLinearOutputStream( | 71 virtual AudioOutputStream* MakeLinearOutputStream( |
| 71 const AudioParameters& params) = 0; | 72 const AudioParameters& params) = 0; |
| 72 | 73 |
| 73 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. | 74 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 74 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 75 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
| 75 const AudioParameters& params, | 76 const AudioParameters& params, |
| 76 const std::string& device_id) = 0; | 77 const std::string& device_id, |
| 78 const StatisticsCallback& statistics_callback) = 0; |
| 77 | 79 |
| 78 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy | 80 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 79 // name is also from |AUDIO_PCM_LINEAR|. | 81 // name is also from |AUDIO_PCM_LINEAR|. |
| 80 virtual AudioInputStream* MakeLinearInputStream( | 82 virtual AudioInputStream* MakeLinearInputStream( |
| 81 const AudioParameters& params, const std::string& device_id) = 0; | 83 const AudioParameters& params, const std::string& device_id) = 0; |
| 82 | 84 |
| 83 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. | 85 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 84 virtual AudioInputStream* MakeLowLatencyInputStream( | 86 virtual AudioInputStream* MakeLowLatencyInputStream( |
| 85 const AudioParameters& params, const std::string& device_id) = 0; | 87 const AudioParameters& params, const std::string& device_id) = 0; |
| 86 | 88 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 156 |
| 155 // Proxy for creating AudioLog objects. | 157 // Proxy for creating AudioLog objects. |
| 156 AudioLogFactory* const audio_log_factory_; | 158 AudioLogFactory* const audio_log_factory_; |
| 157 | 159 |
| 158 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 160 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 159 }; | 161 }; |
| 160 | 162 |
| 161 } // namespace media | 163 } // namespace media |
| 162 | 164 |
| 163 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 165 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |