mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-04 21:50:38 -04:00
20 lines
396 B
C
20 lines
396 B
C
#ifndef _WAV_H
|
|
|
|
#define _WAV_H
|
|
#define WAV_RIFF "RIFF"
|
|
#define WAV_WAVE "WAVE"
|
|
#define WAV_FMT "fmt "
|
|
#define WAV_DATA "data"
|
|
|
|
typedef struct t_wave
|
|
{
|
|
unsigned short wav_mode,chans;
|
|
int32_t freq,bps;
|
|
}T_WAVE;
|
|
|
|
int find_chunk(FILE *riff,char *name); //-1 neuspech, jinak pozice
|
|
int get_chunk_size(FILE *riff); //velikost
|
|
int read_chunk(FILE *riff,void *mem); // 1 neuspech
|
|
|
|
|
|
#endif
|