| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual AudioOutputStream* MakeLinearOutputStream( | 73 virtual AudioOutputStream* MakeLinearOutputStream( |
| 74 const AudioParameters& params, | 74 const AudioParameters& params, |
| 75 const LogCallback& log_callback) = 0; | 75 const LogCallback& log_callback) = 0; |
| 76 | 76 |
| 77 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. | 77 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 78 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 78 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
| 79 const AudioParameters& params, | 79 const AudioParameters& params, |
| 80 const std::string& device_id, | 80 const std::string& device_id, |
| 81 const LogCallback& log_callback) = 0; | 81 const LogCallback& log_callback) = 0; |
| 82 | 82 |
| 83 // Creates the output stream for the |AUDIO_RAW_XXX| format. |
| 84 virtual AudioOutputStream* MakeRawOutputStream( |
| 85 const AudioParameters& params, |
| 86 const std::string& device_id, |
| 87 const LogCallback& log_callback); |
| 88 |
| 83 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy | 89 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 84 // name is also from |AUDIO_PCM_LINEAR|. | 90 // name is also from |AUDIO_PCM_LINEAR|. |
| 85 virtual AudioInputStream* MakeLinearInputStream( | 91 virtual AudioInputStream* MakeLinearInputStream( |
| 86 const AudioParameters& params, | 92 const AudioParameters& params, |
| 87 const std::string& device_id, | 93 const std::string& device_id, |
| 88 const LogCallback& log_callback) = 0; | 94 const LogCallback& log_callback) = 0; |
| 89 | 95 |
| 90 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. | 96 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 91 virtual AudioInputStream* MakeLowLatencyInputStream( | 97 virtual AudioInputStream* MakeLowLatencyInputStream( |
| 92 const AudioParameters& params, | 98 const AudioParameters& params, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 172 |
| 167 // Proxy for creating AudioLog objects. | 173 // Proxy for creating AudioLog objects. |
| 168 AudioLogFactory* const audio_log_factory_; | 174 AudioLogFactory* const audio_log_factory_; |
| 169 | 175 |
| 170 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 176 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 171 }; | 177 }; |
| 172 | 178 |
| 173 } // namespace media | 179 } // namespace media |
| 174 | 180 |
| 175 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 181 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |