Skip to content

Commit

Permalink
Merge pull request #2 from sunny-chung/fix/get-gain-and-set-gain-not-…
Browse files Browse the repository at this point in the history
…aligned

fix value returned by getGain and parameter in setGain do not align (goxr3plus#30)
  • Loading branch information
sunny-chung committed Oct 2, 2023
2 parents fa5ce10 + 4e40522 commit 4e6eabe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,9 @@ public Mixer getCurrentMixer(){
*/
@Override
public float getGainValue() {
return outlet.getGainValue();
float gain = outlet.getGainValue();
double volume = Math.pow(10.0, gain / 20.0);
return (float) volume;
}

/**
Expand Down

0 comments on commit 4e6eabe

Please sign in to comment.