Volume correction
Fork of wave_player_appbd by
Diff: wave_player.cpp
- Revision:
- 3:cb29173d2fde
- Parent:
- 2:b1cea7afcfd2
diff -r b1cea7afcfd2 -r cb29173d2fde wave_player.cpp --- a/wave_player.cpp Fri Nov 01 15:24:51 2013 +0000 +++ b/wave_player.cpp Thu Dec 10 06:54:14 2015 +0000 @@ -209,7 +209,7 @@ printf("ISR rdptr %d got %u\n",DAC_rptr,DAC_fifo[DAC_rptr]); #endif //scale down Analog voltage by 8 for PC speakers - wave_DAC->write_u16(DAC_fifo[DAC_rptr]>>3); + wave_DAC->write_u16(DAC_fifo[DAC_rptr]);//>>3); //Output to onboard speaker using PWM (Class D Audio Amp!) wave_PWM->write(float(DAC_fifo[DAC_rptr]/65536.0)); DAC_rptr=(DAC_rptr+1) & 0xff;