changed volume
Fork of wave_player by
Revision 2:0d72aa28e2f0, committed 2015-03-12
- Comitter:
- kbhagat6
- Date:
- Thu Mar 12 20:55:53 2015 +0000
- Parent:
- 1:acc3e18e77ad
- Commit message:
- volume
Changed in this revision
wave_player.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r acc3e18e77ad -r 0d72aa28e2f0 wave_player.cpp --- a/wave_player.cpp Tue Jan 18 03:57:27 2011 +0000 +++ b/wave_player.cpp Thu Mar 12 20:55:53 2015 +0000 @@ -173,7 +173,7 @@ dac_data=(short unsigned)slice_value; if (verbosity) printf("sample %d wptr %d slice_value %d dac_data %u\n",slice,DAC_wptr,(int)slice_value,dac_data); - DAC_fifo[DAC_wptr]=dac_data; + DAC_fifo[DAC_wptr]=(16*dac_data)>>4; DAC_wptr=(DAC_wptr+1) & 0xff; while (DAC_wptr==DAC_rptr) { }