Skip to content

Commit

Permalink
Fix PulseAudio driver for audio devices that report unknown number of…
Browse files Browse the repository at this point in the history
… channels
  • Loading branch information
marcelofg55 committed Apr 12, 2018
1 parent d87307d commit 11fbfab
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 11fbfab

Please sign in to comment.