Skip to content

Commit

Permalink
Merge pull request #18124 from marcelofg55/pulse_channels
Browse files Browse the repository at this point in the history
Fix PulseAudio driver for audio devices that report unknown number of channels
  • Loading branch information
akien-mga authored Apr 12, 2018
2 parents 38fe9ae + 11fbfab commit d121f4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/pulseaudio/audio_driver_pulseaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d121f4a

Please sign in to comment.