Production Test Program (PTP) for the LPC4088 Experiment Base Board

Dependencies:   EALib I2S LM75B SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Tue Sep 09 14:20:12 2014 +0000
Parent:
5:3eb61b96b6ac
Child:
7:48375cb50f3a
Commit message:
Clear audio buffer before start (= no initial noise) (andro)

Changed in this revision

TestAudio.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TestAudio.cpp	Tue Sep 09 09:58:19 2014 +0000
+++ b/TestAudio.cpp	Tue Sep 09 14:20:12 2014 +0000
@@ -123,6 +123,9 @@
     DigitalIn left(p39);
     DigitalIn right(p37);
     
+    for(int i=0; i<ECHOLENGTH; i++)
+      _echoBuf[i] = 0;
+    
     _codec.power(true);
     _codec.frequency(SAMPLERATE);
     _codec.wordsize(16);