Volume correction
Fork of wave_player_appbd by
Revision 3:cb29173d2fde, committed 2015-12-10
- Comitter:
- twmeares
- Date:
- Thu Dec 10 06:54:14 2015 +0000
- Parent:
- 2:b1cea7afcfd2
- Commit message:
- Makes normal changes for sound volume.
Changed in this revision
wave_player.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;