Decode Wav files

Revision:
2:18fdd269b401
Parent:
1:c1046d91bff7
diff -r c1046d91bff7 -r 18fdd269b401 WAV_Reader.h
--- a/WAV_Reader.h	Fri Feb 24 15:18:01 2017 +0000
+++ b/WAV_Reader.h	Wed Mar 01 10:35:59 2017 +0000
@@ -39,15 +39,17 @@
 
         WAV_Reader();
         int open(FILE **filepp);
-        int read(char buff[], int len);
+        int read(int buff[], int size, int len);
         void reset();
         void seek(int num, int start = -1);
         bool loop();
         void loop(bool enable);
         uint16_t channels();
         uint32_t samples_per_sec();
+        uint32_t bytes_per_sec();
         uint16_t block_align();
         uint16_t bits_per_sample();
+        uint32_t data_length();
 
     private:
         FILE ** fpp;