소스 검색

Fix PulseAudio driver for audio devices that report unknown number of channels

Marcelo Fernandez 7 년 전
부모
커밋
11fbfab7ec
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      drivers/pulseaudio/audio_driver_pulseaudio.cpp

+ 3 - 2
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;
 	}