Skip to content

Commit

Permalink
AudioDriverAD1938Class
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Mar 27, 2024
1 parent 7b890ff commit 6a9056d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class AudioDriverAD1938Class : public AudioDriver {
bool setMute(bool mute) override { return ad1938.setMute(mute); }
// mutes an individual DAC: valid range (0:3)
bool setMute(bool mute, int line) {
if (dac_num > 3) return false;
if (line > 3) return false;
return ad1938.setVolumeDAC(line, mute ? 0.0 : (static_cast<float>(volumes[line]) / 100.0f));
}

Expand Down

0 comments on commit 6a9056d

Please sign in to comment.