Niotso  git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
read_wav.c File Reference
#include <stdint.h>
#include <string.h>
#include "read_wav.h"

Macros

#define WAVE_FORMAT_PCM   1
 
#define read_uint32(x)   (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)) | ((x)[2]<<(8*2)) | ((x)[3]<<(8*3)))
 
#define read_uint16(x)   (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)))
 

Functions

int wav_read_header (wavheader_t *WAVHeader, const uint8_t *Buffer, size_t FileSize)
 

Macro Definition Documentation

#define read_uint16 (   x)    (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)))
#define read_uint32 (   x)    (unsigned)(((x)[0]<<(8*0)) | ((x)[1]<<(8*1)) | ((x)[2]<<(8*2)) | ((x)[3]<<(8*3)))
#define WAVE_FORMAT_PCM   1

Function Documentation

int wav_read_header ( wavheader_t WAVHeader,
const uint8_t *  Buffer,
size_t  FileSize 
)