1 
2 /*
3  * xa_8svx.h
4  *
5  * Copyright (C) 1998 by Andreas Micklei.
6  * All rights reserved.
7  *
8  * This software may be freely used, copied and redistributed without
9  * fee for non-commerical purposes provided that this copyright
10  * notice is preserved intact on all copies.
11  *
12  * There is no warranty or other guarantee of fitness of this software.
13  * It is provided solely "as is". The author disclaims all
14  * responsibility and liability with respect to this software's usage
15  * or its effect upon hardware or computer systems.
16  *
17  */
18 
19 /* this one could be in xanim.h, we used to adapt the IFF 8SVX spec with
20  * minimal changes
21  */
22 #define xaUWORD xaUSHORT
23 
24 typedef struct
25 {
26  xaLONG id;
27  xaLONG size;
28 } Chunk_Header;
29 
30 /* Grouping Stuff (unsupported) */
31 #define LIST 0x4c495354
32 #define PROP 0x50524f50
33 
34 /* Sound stuff */
35 #define FORM 0x464f524d
36 #define BODY 0x424f4459
37 #define VHDR 0x56484452		/* Voice8Header */
38 #define COPY 0x28632920		/* "(c) " */
39 #define	AUTH 0x41555448		/* Author */
40 #define ANNO 0x414e4e4f		/* Annotation */
41 #define ATAK 0x4154414b		/* hope we never encounter this */
42 #define RLSE 0x524C5345		/* nor this */
43 #define CHAN 0x4348414e		/* Stereo extension (ignored) */
44 #define PAN  0x50414e20		/* Panning extension (ignored) */
45 #define SEQN 0x5345514e		/* Multi Loop extension (ignored) */
46 #define FADE 0x46414445		/* Fading extension (ignored) */
47 
48 
49 /* Shamelessly stolen from the IFF 8SVX standard definition
50  * look there for additional comments
51  */
52 
53 /* sCompression */
54 #define sCmpNone	0
55 #define sCmpFibDelta	1	/* presently not supported */
56 
57 typedef struct
58 {
59 	xaULONG	oneShotHiSamples,
60 		repeatHiSamples,
61 		samplesPerHiCycle;
62 	xaUWORD	samplesPerSec;
63 	xaUBYTE	ctOctave,
64 		sCompression;
65 	xaLONG	volume;		/* fixed point value */
66 } Voice8Header;
67 
68 extern xaULONG SVX_Read_File();
69 
70