| 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 <unordered_set> | 10 #include <unordered_set> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 int input_stream_count() const { | 98 int input_stream_count() const { |
| 99 return static_cast<int>(input_streams_.size()); | 99 return static_cast<int>(input_streams_.size()); |
| 100 } | 100 } |
| 101 int output_stream_count() const { return num_output_streams_; } | 101 int output_stream_count() const { return num_output_streams_; } |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 AudioManagerBase(std::unique_ptr<AudioThread> audio_thread, | 104 AudioManagerBase(std::unique_ptr<AudioThread> audio_thread, |
| 105 AudioLogFactory* audio_log_factory); | 105 AudioLogFactory* audio_log_factory); |
| 106 | 106 |
| 107 // AudioManager: | 107 // AudioManager: |
| 108 void ShutdownOnAudioThread() override; | 108 void ShutdownOnAudioThread(bool immediately) override; |
| 109 base::string16 GetAudioInputDeviceModel() override; | 109 base::string16 GetAudioInputDeviceModel() override; |
| 110 void ShowAudioInputSettings() override; | 110 void ShowAudioInputSettings() override; |
| 111 | 111 |
| 112 void GetAudioInputDeviceDescriptions( | 112 void GetAudioInputDeviceDescriptions( |
| 113 AudioDeviceDescriptions* device_descriptions) final; | 113 AudioDeviceDescriptions* device_descriptions) final; |
| 114 void GetAudioOutputDeviceDescriptions( | 114 void GetAudioOutputDeviceDescriptions( |
| 115 AudioDeviceDescriptions* device_descriptions) final; | 115 AudioDeviceDescriptions* device_descriptions) final; |
| 116 | 116 |
| 117 AudioParameters GetDefaultOutputStreamParameters() override; | 117 AudioParameters GetDefaultOutputStreamParameters() override; |
| 118 AudioParameters GetOutputStreamParameters( | 118 AudioParameters GetOutputStreamParameters( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 // Debug recording manager. | 204 // Debug recording manager. |
| 205 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_; | 205 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 207 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace media | 210 } // namespace media |
| 211 | 211 |
| 212 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 212 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |