| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void ShowAudioInputSettings() OVERRIDE; | 57 virtual void ShowAudioInputSettings() OVERRIDE; |
| 58 | 58 |
| 59 virtual void GetAudioInputDeviceNames( | 59 virtual void GetAudioInputDeviceNames( |
| 60 AudioDeviceNames* device_names) OVERRIDE; | 60 AudioDeviceNames* device_names) OVERRIDE; |
| 61 | 61 |
| 62 virtual void GetAudioOutputDeviceNames( | 62 virtual void GetAudioOutputDeviceNames( |
| 63 AudioDeviceNames* device_names) OVERRIDE; | 63 AudioDeviceNames* device_names) OVERRIDE; |
| 64 | 64 |
| 65 virtual AudioOutputStream* MakeAudioOutputStream( | 65 virtual AudioOutputStream* MakeAudioOutputStream( |
| 66 const AudioParameters& params, | 66 const AudioParameters& params, |
| 67 const std::string& device_id, | 67 const std::string& device_id) OVERRIDE; |
| 68 const std::string& input_device_id) OVERRIDE; | |
| 69 | 68 |
| 70 virtual AudioInputStream* MakeAudioInputStream( | 69 virtual AudioInputStream* MakeAudioInputStream( |
| 71 const AudioParameters& params, const std::string& device_id) OVERRIDE; | 70 const AudioParameters& params, const std::string& device_id) OVERRIDE; |
| 72 | 71 |
| 73 virtual AudioOutputStream* MakeAudioOutputStreamProxy( | 72 virtual AudioOutputStream* MakeAudioOutputStreamProxy( |
| 74 const AudioParameters& params, | 73 const AudioParameters& params, |
| 75 const std::string& device_id, | 74 const std::string& device_id) OVERRIDE; |
| 76 const std::string& input_device_id) OVERRIDE; | |
| 77 | 75 |
| 78 // Called internally by the audio stream when it has been closed. | 76 // Called internally by the audio stream when it has been closed. |
| 79 virtual void ReleaseOutputStream(AudioOutputStream* stream); | 77 virtual void ReleaseOutputStream(AudioOutputStream* stream); |
| 80 virtual void ReleaseInputStream(AudioInputStream* stream); | 78 virtual void ReleaseInputStream(AudioInputStream* stream); |
| 81 | 79 |
| 82 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy | 80 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 83 // name is also from |AUDIO_PCM_LINEAR|. | 81 // name is also from |AUDIO_PCM_LINEAR|. |
| 84 virtual AudioOutputStream* MakeLinearOutputStream( | 82 virtual AudioOutputStream* MakeLinearOutputStream( |
| 85 const AudioParameters& params) = 0; | 83 const AudioParameters& params) = 0; |
| 86 | 84 |
| 87 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. | 85 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 88 // |input_device_id| is used by unified IO to open the correct input device. | |
| 89 virtual AudioOutputStream* MakeLowLatencyOutputStream( | 86 virtual AudioOutputStream* MakeLowLatencyOutputStream( |
| 90 const AudioParameters& params, | 87 const AudioParameters& params, |
| 91 const std::string& device_id, | 88 const std::string& device_id) = 0; |
| 92 const std::string& input_device_id) = 0; | |
| 93 | 89 |
| 94 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy | 90 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy |
| 95 // name is also from |AUDIO_PCM_LINEAR|. | 91 // name is also from |AUDIO_PCM_LINEAR|. |
| 96 virtual AudioInputStream* MakeLinearInputStream( | 92 virtual AudioInputStream* MakeLinearInputStream( |
| 97 const AudioParameters& params, const std::string& device_id) = 0; | 93 const AudioParameters& params, const std::string& device_id) = 0; |
| 98 | 94 |
| 99 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. | 95 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. |
| 100 virtual AudioInputStream* MakeLowLatencyInputStream( | 96 virtual AudioInputStream* MakeLowLatencyInputStream( |
| 101 const AudioParameters& params, const std::string& device_id) = 0; | 97 const AudioParameters& params, const std::string& device_id) = 0; |
| 102 | 98 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 195 |
| 200 // Proxy for creating AudioLog objects. | 196 // Proxy for creating AudioLog objects. |
| 201 AudioLogFactory* const audio_log_factory_; | 197 AudioLogFactory* const audio_log_factory_; |
| 202 | 198 |
| 203 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); | 199 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); |
| 204 }; | 200 }; |
| 205 | 201 |
| 206 } // namespace media | 202 } // namespace media |
| 207 | 203 |
| 208 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ | 204 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ |
| OLD | NEW |