| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 AudioInputStream* MakeLinearInputStream( | 44 AudioInputStream* MakeLinearInputStream( |
| 45 const AudioParameters& params, | 45 const AudioParameters& params, |
| 46 const std::string& device_id, | 46 const std::string& device_id, |
| 47 const LogCallback& log_callback) override; | 47 const LogCallback& log_callback) override; |
| 48 AudioInputStream* MakeLowLatencyInputStream( | 48 AudioInputStream* MakeLowLatencyInputStream( |
| 49 const AudioParameters& params, | 49 const AudioParameters& params, |
| 50 const std::string& device_id, | 50 const std::string& device_id, |
| 51 const LogCallback& log_callback) override; | 51 const LogCallback& log_callback) override; |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 void ShutdownOnAudioThread() override; | 54 void ShutdownOnAudioThread(bool immediately) override; |
| 55 AudioParameters GetPreferredOutputStreamParameters( | 55 AudioParameters GetPreferredOutputStreamParameters( |
| 56 const std::string& output_device_id, | 56 const std::string& output_device_id, |
| 57 const AudioParameters& input_params) override; | 57 const AudioParameters& input_params) override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 void GetAudioDeviceNames(bool input, media::AudioDeviceNames* device_names); | 60 void GetAudioDeviceNames(bool input, media::AudioDeviceNames* device_names); |
| 61 | 61 |
| 62 // Callback to get the devices' info like names, used by GetInputDevices(). | 62 // Callback to get the devices' info like names, used by GetInputDevices(). |
| 63 static void InputDevicesInfoCallback(pa_context* context, | 63 static void InputDevicesInfoCallback(pa_context* context, |
| 64 const pa_source_info* info, | 64 const pa_source_info* info, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 89 AudioDeviceNames* devices_; | 89 AudioDeviceNames* devices_; |
| 90 int native_input_sample_rate_; | 90 int native_input_sample_rate_; |
| 91 int native_channel_count_; | 91 int native_channel_count_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); | 93 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace media | 96 } // namespace media |
| 97 | 97 |
| 98 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ | 98 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
| OLD | NEW |