Skip to content

Commit a4da99b

Browse files
committed
SPDIFStream
1 parent 56ff784 commit a4da99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioExperiments/AudioSPDIF.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class SPDIFStream : public AudioStreamX {
137137
bool begin(SPDIFConfig cfg) {
138138
LOGD(LOG_METHOD);
139139
// Some validations to make sure that the config is valid
140-
if (!(cfg.channels == 1 | cfg.channels == 2)) {
140+
if (!(cfg.channels == 1 || cfg.channels == 2)) {
141141
LOGE("Unsupported number of channels: %d", cfg.channels);
142142
return false;
143143
}

0 commit comments

Comments
 (0)