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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const std::string& device_id, | 42 const std::string& device_id, |
43 const LogCallback& log_callback) override; | 43 const LogCallback& log_callback) override; |
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 std::string GetAssociatedOutputDeviceID( |
| 53 const std::string& input_device_id) override; |
| 54 std::string GetDefaultOutputDeviceID() override; |
52 | 55 |
53 protected: | 56 protected: |
54 ~AudioManagerPulse() override; | 57 ~AudioManagerPulse() override; |
55 | 58 |
56 AudioParameters GetPreferredOutputStreamParameters( | 59 AudioParameters GetPreferredOutputStreamParameters( |
57 const std::string& output_device_id, | 60 const std::string& output_device_id, |
58 const AudioParameters& input_params) override; | 61 const AudioParameters& input_params) override; |
59 | 62 |
60 private: | 63 private: |
61 bool InitPulse(); | 64 bool InitPulse(); |
(...skipping 30 matching lines...) Expand all Loading... |
92 pa_context* input_context_; | 95 pa_context* input_context_; |
93 AudioDeviceNames* devices_; | 96 AudioDeviceNames* devices_; |
94 int native_input_sample_rate_; | 97 int native_input_sample_rate_; |
95 | 98 |
96 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); | 99 DISALLOW_COPY_AND_ASSIGN(AudioManagerPulse); |
97 }; | 100 }; |
98 | 101 |
99 } // namespace media | 102 } // namespace media |
100 | 103 |
101 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ | 104 #endif // MEDIA_AUDIO_PULSE_AUDIO_MANAGER_PULSE_H_ |
OLD | NEW |