Chromium Code Reviews| Index: media/audio/pulse/pulse_input.h |
| diff --git a/media/audio/pulse/pulse_input.h b/media/audio/pulse/pulse_input.h |
| index e0b2be9e2ef31134f7680b59e82956708844ca7f..04df7bd4cb528fdea4540bb7adec972e0253cee9 100644 |
| --- a/media/audio/pulse/pulse_input.h |
| +++ b/media/audio/pulse/pulse_input.h |
| @@ -40,6 +40,8 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> { |
| void SetVolume(double volume) override; |
| double GetVolume() override; |
| bool IsMuted() override; |
| + pa_threaded_mainloop* GetPAMainloop(); |
|
Henrik Grunell
2016/03/10 00:57:07
Empty line before since it's not part of AudioInpu
rchtara
2016/03/10 13:20:34
Done.
|
| + void SetDefaultSystemDeviceName(const std::string& name); |
| private: |
| // PulseAudio Callbacks. |
| @@ -52,6 +54,9 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> { |
| int error, |
| void* user_data); |
| + // Get default system input device for the input stream. |
| + void GetSystemDefaultInputDevice(); |
| + |
| // Helper for the ReadCallback. |
| void ReadData(); |
| @@ -60,7 +65,12 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> { |
| AudioManagerPulse* audio_manager_; |
| AudioInputCallback* callback_; |
| - std::string device_name_; |
| + const std::string device_name_; |
| + // The name of the system default device. Set by |
| + // GetSystemDefaultInputDeviceCallback if |device_name_| is set to be the |
| + // default device. |
| + std::string default_system_device_name_; |
| + |
| AudioParameters params_; |
| int channels_; |
| double volume_; |