Le format d'échantillon sonore Audio Visual Research est relativement répandu car contrairement aux nombreux fichiers SPL utilisés par les modules soundtracks, il contient des informations sur le type d'échantillons (mono/stéréo, résolution 8 ou 16 bits, fréquence etc).
/ AVR Format Header Data Structure-128 Bytes / typedef struct { char magic[4]; / Magic number = "2BIT" / char name[8]; / Sample name (null-padded string) / short mono; / Number of channels-mono/stereo / short rez; / Sample resolution-8/16-bit / short sign; / Sample format-signed/unsigned / short loop; / Loop mode-on/off / short midi; / MIDI note assign or keyboard split / long rate; / Sample frequency in Hz / long size; / Data length in samples / long lbeg; / Offset to start of loop-0 if unused. / long lend; / Offset to end of loop-0 if unused. / short resl; / Reserved, MIDI keyboard split / short res2; / Reserved, sample compression / short res3; / Reserved / char ext[20]; / Longer name space (if name[7] != 0) / char user[64]; / User-defined; typically ASCII /
} AVRHeader
Article précédent Article suivant