AudioOutputPWM: added amplification (#605)
Co-authored-by: RASMUSSEN Joern <joern.rasmussen-ext@hexagon.com>
This commit is contained in:
1 parent
50bc3f7279
commit
96dc79c9fa
1 file changed
+3
@@ -89,6 +89,9 @@ bool AudioOutputPWM::ConsumeSample(int16_t sample[2]) {
|
||||
ms[LEFTCHANNEL] = ms[RIGHTCHANNEL] = (ttl>>1) & 0xffff;
|
||||
}
|
||||
|
||||
ms[LEFTCHANNEL] = Amplify(ms[LEFTCHANNEL]);
|
||||
ms[RIGHTCHANNEL] = Amplify(ms[RIGHTCHANNEL]);
|
||||
|
||||
if (pwm.available()) {
|
||||
pwm.write((int16_t) ms[0]);
|
||||
pwm.write((int16_t) ms[1]);
|
||||
|
||||
Reference in new issue
Block a user