| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 AudioParameters GetDefaultOutputStreamParameters() override; | 61 AudioParameters GetDefaultOutputStreamParameters() override; |
| 62 AudioParameters GetOutputStreamParameters( | 62 AudioParameters GetOutputStreamParameters( |
| 63 const std::string& device_id) override; | 63 const std::string& device_id) override; |
| 64 AudioParameters GetInputStreamParameters( | 64 AudioParameters GetInputStreamParameters( |
| 65 const std::string& device_id) override; | 65 const std::string& device_id) override; |
| 66 std::string GetAssociatedOutputDeviceID( | 66 std::string GetAssociatedOutputDeviceID( |
| 67 const std::string& input_device_id) override; | 67 const std::string& input_device_id) override; |
| 68 std::unique_ptr<AudioLog> CreateAudioLog( | 68 std::unique_ptr<AudioLog> CreateAudioLog( |
| 69 AudioLogFactory::AudioComponent component) override; | 69 AudioLogFactory::AudioComponent component) override; |
| 70 | 70 |
| 71 void SetMaxStreamCountForTesting(int max_input, int max_output) final; |
| 72 |
| 71 // AudioManagerBase: | 73 // AudioManagerBase: |
| 72 | 74 |
| 73 // Called internally by the audio stream when it has been closed. | 75 // Called internally by the audio stream when it has been closed. |
| 74 virtual void ReleaseOutputStream(AudioOutputStream* stream); | 76 virtual void ReleaseOutputStream(AudioOutputStream* stream); |
| 75 virtual void ReleaseInputStream(AudioInputStream* stream); | 77 virtual void ReleaseInputStream(AudioInputStream* stream); |
| 76 | 78 |
| 77 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy | 79 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 78 // name is also from |AUDIO_PCM_LINEAR|. | 80 // name is also from |AUDIO_PCM_LINEAR|. |
| 79 virtual AudioOutputStream* MakeLinearOutputStream( | 81 virtual AudioOutputStream* MakeLinearOutputStream( |
| 80 const AudioParameters& params, | 82 const AudioParameters& params, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 188 |
| 187 // Proxy for creating AudioLog objects. | 189 // Proxy for creating AudioLog objects. |
| 188 AudioLogFactory* const audio_log_factory_; | 190 AudioLogFactory* const audio_log_factory_; |
| 189 | 191 |
| 190 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 192 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 191 }; | 193 }; |
| 192 | 194 |
| 193 } // namespace media | 195 } // namespace media |
| 194 | 196 |
| 195 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 197 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |