f303k8 wav player

Dependencies:   SDFileSystem mbed

wavChunks.h

Committer:
nameless129
Date:
2016-12-02
Revision:
4:6e56da5068f3
Parent:
1:7a3f34b2d18b

File content as of revision 4:6e56da5068f3:


#ifndef __WAVCHUNKS_H_
#define __WAVCHUNKS_H_

#define RIFFHedderSize (12)
struct RIFFHedder_s
{
    uint32_t    riff;
    int32_t     size;
    uint32_t    type;
};

#define BextChunkSize (4)
struct BextChunk_s
{
//  uint32_t    ckID;
    int32_t     ckSize;
};

#define FormatChunkSize (20)
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;
};

#define DataChunkSize (8)
struct DataChunk_s {
    uint32_t id;
    int32_t size;
};

#endif