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 98aa4f7 commit 7b890ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,9 @@ class AudioDriverAD1938Class : public AudioDriver {
}
bool end(void) override { return ad1938.end(); }
bool setMute(bool mute) override { return ad1938.setMute(mute); }
// mutes an individual DAC
// mutes an individual DAC: valid range (0:3)
bool setMute(bool mute, int line) {
if (line > 7) return false;
if (dac_num > 3) return false;
return ad1938.setVolumeDAC(line, mute ? 0.0 : (static_cast<float>(volumes[line]) / 100.0f));
}

Expand Down

0 comments on commit 7b890ff

Please sign in to comment.