f303k8 wav player

Dependencies:   SDFileSystem mbed

Revision:
0:1561c4efda0e
Child:
1:7a3f34b2d18b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wavChunks.h	Sun Jul 31 12:13:36 2016 +0000
@@ -0,0 +1,40 @@
+
+#ifndef __WAVCHUNKS_H_
+#define __WAVCHUNKS_H_
+
+struct RIFFHedder_s
+{
+    uint32_t    riff;
+    int32_t     size;
+    uint32_t    type;
+};
+
+struct BextChunk_s
+{
+//  uint32_t    ckID;
+    int32_t     ckSize;
+};
+
+struct FormatChunk_s {
+//  uint32_t id;
+    int32_t size;
+    int16_t format;
+    uint16_t channels;
+    uint32_t samplerate;
+    uint32_t bytepersec;
+    uint16_t blockalign;
+    uint16_t bitswidth;
+};
+
+struct wav_hedder_std_s
+{
+    RIFFHedder_s RIFFHedder;
+    FormatChunk_s FormatChunk;
+};
+
+struct DataChunk_s {
+    uint32_t id;
+    int32_t size;
+};
+
+#endif
\ No newline at end of file