Code cleanup.

This commit is contained in:
Steven Smith
2015-01-25 19:04:27 -08:00
parent e60b6b8f23
commit 9b7c6b8c0d
17 changed files with 443 additions and 414 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef __WAV_H__
#define __WAV_H__
#include "../types.h"
typedef struct {
char chunkId[4];
u32 chunkSize;
char format[4];
} Riff;
typedef struct {
char chunkId[4];
u32 chunkSize;
u16 format;
u16 numChannels;
u32 sampleRate;
u32 byteRate;
u16 align;
u16 bitsPerSample;
} Format;
typedef struct {
char chunkId[4];
u32 chunkSize;
u8* data;
} Data;
typedef struct {
Riff riff;
Format format;
Data data;
} WAV;
WAV* wav_read(const char* file);
void wav_free(WAV* wav);
#endif