Tapton school project for Fido audio function

Dependents:   WavFileplayerForFido mbed2sensor_MPtest5

Fork of wave_player_appbd by jim hamblen

Files at this revision

API Documentation at this revision

Comitter:
mptapton
Date:
Thu Feb 09 13:58:29 2017 +0000
Parent:
2:b1cea7afcfd2
Commit message:
Tapton school Fido project audio section

Changed in this revision

wave_player.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b1cea7afcfd2 -r c056757cda3a wave_player.cpp
--- a/wave_player.cpp	Fri Nov 01 15:24:51 2013 +0000
+++ b/wave_player.cpp	Thu Feb 09 13:58:29 2017 +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]); // was >>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;