| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual AudioOutputStream* MakeLinearOutputStream( | 68 virtual AudioOutputStream* MakeLinearOutputStream( |
| 69 const AudioParameters& params, | 69 const AudioParameters& params, |
| 70 const LogCallback& log_callback) = 0; | 70 const LogCallback& log_callback) = 0; |
| 71 | 71 |
| 72 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. | 72 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 73 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 73 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
| 74 const AudioParameters& params, | 74 const AudioParameters& params, |
| 75 const std::string& device_id, | 75 const std::string& device_id, |
| 76 const LogCallback& log_callback) = 0; | 76 const LogCallback& log_callback) = 0; |
| 77 | 77 |
| 78 // Creates the output stream for the |AUDIO_BITSTREAM_XXX| format. |
| 79 virtual AudioOutputStream* MakeBitstreamOutputStream( |
| 80 const AudioParameters& params, |
| 81 const std::string& device_id, |
| 82 const LogCallback& log_callback); |
| 83 |
| 78 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy | 84 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 79 // name is also from |AUDIO_PCM_LINEAR|. | 85 // name is also from |AUDIO_PCM_LINEAR|. |
| 80 virtual AudioInputStream* MakeLinearInputStream( | 86 virtual AudioInputStream* MakeLinearInputStream( |
| 81 const AudioParameters& params, | 87 const AudioParameters& params, |
| 82 const std::string& device_id, | 88 const std::string& device_id, |
| 83 const LogCallback& log_callback) = 0; | 89 const LogCallback& log_callback) = 0; |
| 84 | 90 |
| 85 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. | 91 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 86 virtual AudioInputStream* MakeLowLatencyInputStream( | 92 virtual AudioInputStream* MakeLowLatencyInputStream( |
| 87 const AudioParameters& params, | 93 const AudioParameters& params, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 203 |
| 198 // Debug recording manager. | 204 // Debug recording manager. |
| 199 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_; | 205 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_; |
| 200 | 206 |
| 201 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 207 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 202 }; | 208 }; |
| 203 | 209 |
| 204 } // namespace media | 210 } // namespace media |
| 205 | 211 |
| 206 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 212 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |