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 17 matching lines...) Expand all Loading... |
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 | 35 |
36 // Implementation of AudioManagerBase. | 36 // Implementation of AudioManagerBase. |
37 AudioOutputStream* MakeLinearOutputStream( | 37 AudioOutputStream* MakeLinearOutputStream( |
38 const AudioParameters& params) override; | 38 const AudioParameters& params, |
| 39 const LogCallback& log_callback) override; |
39 AudioOutputStream* MakeLowLatencyOutputStream( | 40 AudioOutputStream* MakeLowLatencyOutputStream( |
40 const AudioParameters& params, | 41 const AudioParameters& params, |
41 const std::string& device_id) override; | 42 const std::string& device_id, |
| 43 const LogCallback& log_callback) override; |
42 AudioInputStream* MakeLinearInputStream( | 44 AudioInputStream* MakeLinearInputStream( |
43 const AudioParameters& params, | 45 const AudioParameters& params, |
44 const std::string& device_id) override; | 46 const std::string& device_id, |
| 47 const LogCallback& log_callback) override; |
45 AudioInputStream* MakeLowLatencyInputStream( | 48 AudioInputStream* MakeLowLatencyInputStream( |
46 const AudioParameters& params, | 49 const AudioParameters& params, |
47 const std::string& device_id) override; | 50 const std::string& device_id, |
| 51 const LogCallback& log_callback) override; |
48 | 52 |
49 protected: | 53 protected: |
50 ~AudioManagerPulse() override; | 54 ~AudioManagerPulse() override; |
51 | 55 |
52 AudioParameters GetPreferredOutputStreamParameters( | 56 AudioParameters GetPreferredOutputStreamParameters( |
53 const std::string& output_device_id, | 57 const std::string& output_device_id, |
54 const AudioParameters& input_params) override; | 58 const AudioParameters& input_params) override; |
55 | 59 |
56 private: | 60 private: |
57 bool InitPulse(); | 61 bool InitPulse(); |
(...skipping 30 matching lines...) Expand all Loading... |
88 pa_context* input_context_; | 92 pa_context* input_context_; |
89 AudioDeviceNames* devices_; | 93 AudioDeviceNames* devices_; |
90 int native_input_sample_rate_; | 94 int native_input_sample_rate_; |
91 | 95 |
92 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); | 96 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); |
93 }; | 97 }; |
94 | 98 |
95 } // namespace media | 99 } // namespace media |
96 | 100 |
97 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ | 101 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
OLD | NEW |