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 98aa4f7 commit 7b890ffCopy full SHA for 7b890ff
src/Driver.h
@@ -360,9 +360,9 @@ class AudioDriverAD1938Class : public AudioDriver {
360
}
361
bool end(void) override { return ad1938.end(); }
362
bool setMute(bool mute) override { return ad1938.setMute(mute); }
363
- // mutes an individual DAC
+ // mutes an individual DAC: valid range (0:3)
364
bool setMute(bool mute, int line) {
365
- if (line > 7) return false;
+ if (dac_num > 3) return false;
366
return ad1938.setVolumeDAC(line, mute ? 0.0 : (static_cast<float>(volumes[line]) / 100.0f));
367
368
0 commit comments