diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-04-11 12:04:23 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-04-12 08:36:56 -0300 |
commit | 11fbfab7ece953d380152b98e83f78b5ea941bb6 (patch) | |
tree | fa08a14b87ebf5ff57e016f147fe81ffbec744d2 /drivers/pulseaudio | |
parent | d87307d850186d27d2c27c5916ec8c4744c14979 (diff) |
Fix PulseAudio driver for audio devices that report unknown number of channels
Diffstat (limited to 'drivers/pulseaudio')
-rw-r--r-- | drivers/pulseaudio/audio_driver_pulseaudio.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.cpp b/drivers/pulseaudio/audio_driver_pulseaudio.cpp index 5dddb1a900..ad1b241dba 100644 --- a/drivers/pulseaudio/audio_driver_pulseaudio.cpp +++ b/drivers/pulseaudio/audio_driver_pulseaudio.cpp @@ -149,8 +149,9 @@ Error AudioDriverPulseAudio::init_device() { break; default: - ERR_PRINTS("PulseAudio: Unsupported number of channels: " + itos(pa_channels)); - ERR_FAIL_V(ERR_CANT_OPEN); + WARN_PRINTS("PulseAudio: Unsupported number of channels: " + itos(pa_channels)); + pa_channels = 2; + channels = 2; break; } |