f303k8 wav player

Dependencies:   SDFileSystem mbed

wavChunks.h

Committer:
nameless129
Date:
2016-07-31
Revision:
0:1561c4efda0e
Child:
1:7a3f34b2d18b

File content as of revision 0:1561c4efda0e:


#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