Skip to content

Commit 7b890ff

Browse files
committed
AudioDriverAD1938Class
1 parent 98aa4f7 commit 7b890ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Driver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ class AudioDriverAD1938Class : public AudioDriver {
360360
}
361361
bool end(void) override { return ad1938.end(); }
362362
bool setMute(bool mute) override { return ad1938.setMute(mute); }
363-
// mutes an individual DAC
363+
// mutes an individual DAC: valid range (0:3)
364364
bool setMute(bool mute, int line) {
365-
if (line > 7) return false;
365+
if (dac_num > 3) return false;
366366
return ad1938.setVolumeDAC(line, mute ? 0.0 : (static_cast<float>(volumes[line]) / 100.0f));
367367
}
368368

0 commit comments

Comments
 (0)