1 2 #define ID int 3 #define FORM 0x464F524D 4 #define AIFF 0x41494646 5 #define AIFC 0x41494643 6 #define FVER 0x46564552 7 #define AIFCVERSION_1 0xA2805140 8 #define SSND 0x53534E44 9 #define COMM 0x434F4D4D 10 #define CNONE 0x4E4F4E45 11 #define COMMLENGTH 18 12 #define CNONESTR "not compressed" 13 14 typedef struct { 15 ID form; 16 long length; 17 ID type; 18 } Aif_Form; 19 20 typedef struct { 21 ID type; 22 long length; 23 } Aif_Chunk; 24 25 typedef struct { 26 short channels; 27 unsigned long s_frames; 28 short bps; 29 double freq; 30 ID comp_typ; 31 unsigned char plength; 32 char *pstring; 33 } Com_Chunk; 34 35 bool is_aifc(int); 36 int aifc_open(Audio_File *,int); 37 int aifc_read(Audio_File,char *,int); 38 int aifc_write(Audio_File,char *,int); 39 int aifc_seek(Audio_File,int,int); 40 int aifc_close(Audio_File); 41 42 43 44