| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PULSE_AUDIO_MANAGER_PULSE_H_ | 5 #ifndef MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
| 6 #define MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ | 6 #define MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
| 7 | 7 |
| 8 #include <pulse/pulseaudio.h> | 8 #include <pulse/pulseaudio.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 bool Init(); | 25 bool Init(); |
| 26 | 26 |
| 27 // Implementation of AudioManager. | 27 // Implementation of AudioManager. |
| 28 bool HasAudioOutputDevices() override; | 28 bool HasAudioOutputDevices() override; |
| 29 bool HasAudioInputDevices() override; | 29 bool HasAudioInputDevices() override; |
| 30 void ShowAudioInputSettings() override; | 30 void ShowAudioInputSettings() override; |
| 31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; | 31 void GetAudioInputDeviceNames(AudioDeviceNames* device_names) override; |
| 32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; | 32 void GetAudioOutputDeviceNames(AudioDeviceNames* device_names) override; |
| 33 AudioParameters GetInputStreamParameters( | 33 AudioParameters GetInputStreamParameters( |
| 34 const std::string& device_id) override; | 34 const std::string& device_id) override; |
| 35 const char* GetName() override; |
| 35 | 36 |
| 36 // Implementation of AudioManagerBase. | 37 // Implementation of AudioManagerBase. |
| 37 AudioOutputStream* MakeLinearOutputStream( | 38 AudioOutputStream* MakeLinearOutputStream( |
| 38 const AudioParameters& params, | 39 const AudioParameters& params, |
| 39 const LogCallback& log_callback) override; | 40 const LogCallback& log_callback) override; |
| 40 AudioOutputStream* MakeLowLatencyOutputStream( | 41 AudioOutputStream* MakeLowLatencyOutputStream( |
| 41 const AudioParameters& params, | 42 const AudioParameters& params, |
| 42 const std::string& device_id, | 43 const std::string& device_id, |
| 43 const LogCallback& log_callback) override; | 44 const LogCallback& log_callback) override; |
| 44 AudioInputStream* MakeLinearInputStream( | 45 AudioInputStream* MakeLinearInputStream( |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 AudioDeviceNames* devices_; | 94 AudioDeviceNames* devices_; |
| 94 int native_input_sample_rate_; | 95 int native_input_sample_rate_; |
| 95 int native_channel_count_; | 96 int native_channel_count_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); | 98 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace media | 101 } // namespace media |
| 101 | 102 |
| 102 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ | 103 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
| OLD | NEW |