51 #define RIFF_ID (('R'<<24) | ('I'<<16) | ('F'<<8) | 'F')
52 #define WAVE_ID (('W'<<24) | ('A'<<16) | ('V'<<8) | 'E')
53 #define FMT_ID (('f'<<24) | ('m'<<16) | ('t'<<8) | ' ')
54 #define DATA_ID (('d'<<24) | ('a'<<16) | ('t'<<8) | 'a')
55 #define FACT_ID (('f'<<24) | ('a'<<16) | ('c'<<8) | 't')
58 #define WAV_ERR_CHUNK_SIZE (-1)
59 #define WAV_ERR_FILE_TYPE (-2)
60 #define WAV_ERR_ILLEGAL_VALUE (-3)
61 #define WAV_ERR_FORMAT_TYPE (-4)
62 #define WAV_ERR_TRUNCATED (-5)
65 #define WAVE_FORMAT_PCM (1)
66 #define WAVE_FORMAT_IMA_ADPCM (0x0011)
struct WAV_Writer_s WAV_Writer
int dataSizeOffset
Definition: write_wav.h:73
long Audio_WAV_WriteShorts(WAV_Writer *writer, short *samples, int numSamples)
Definition: write_wav.c:140
long Audio_WAV_CloseWriter(WAV_Writer *writer)
Definition: write_wav.c:172
int dataSize
Definition: write_wav.h:74
long Audio_WAV_OpenWriter(WAV_Writer *writer, const char *fileName, int frameRate, int samplesPerFrame)
Definition: write_wav.c:88
FILE * fid
Definition: write_wav.h:71
Definition: write_wav.h:69