We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b890ff commit 6a9056dCopy full SHA for 6a9056d
src/Driver.h
@@ -362,7 +362,7 @@ class AudioDriverAD1938Class : public AudioDriver {
362
bool setMute(bool mute) override { return ad1938.setMute(mute); }
363
// mutes an individual DAC: valid range (0:3)
364
bool setMute(bool mute, int line) {
365
- if (dac_num > 3) return false;
+ if (line > 3) return false;
366
return ad1938.setVolumeDAC(line, mute ? 0.0 : (static_cast<float>(volumes[line]) / 100.0f));
367
}
368
0 commit comments