Plays 8-bit Mono Wav Files for PWM

Revision:
3:574fdfeb949e
Parent:
2:41149130ecf4
--- a/WDplayer.h	Tue Apr 09 04:32:52 2019 +0000
+++ b/WDplayer.h	Wed Apr 17 05:07:15 2019 +0000
@@ -57,16 +57,16 @@
     /** Plays the Wav File (mbed waits till File has finished playing)
      *
      */
-    void WDplay();
+    void WDplay(PwmOut &dac);
     /** Plays the Wav File one Sample at a time
      *
      */
-    void WDtck();
+    void WDtck(PwmOut &dac);
     /** Returns the created PWM period.
      *
      *@returns A unsigned long of the Period the PWM is working on
      */
-    unsigned long get_pwmfreq();
+    float get_pwmfreq();
     
     
     private: