Initial port of RIFF-WAVE (.wav) sound datatype (v50.3) by Fredrik Wikstrom <fredrik...
[AROS.git] / workbench / classes / datatypes / wav / include / wave_class.h
blobb07bb9bd97030be6a02166aa956c3389feb2faa5
1 /*
2 * wave.datatype
3 * (c) Fredrik Wikstrom
4 */
6 #ifndef WAVE_CLASS_H
7 #define WAVE_CLASS_H 1
9 #define GLOBAL_IFACES (FALSE)
10 #define SND_BUFFER_SIZE (16 << 10) // size of buffer used for decoding/encoding
11 #define MAX_CHANNELS (2)
13 #include <intuition/intuition.h>
14 #include <intuition/gadgetclass.h>
15 #include <intuition/classes.h>
16 #include <intuition/cghooks.h>
18 #include <dos/dosextens.h>
20 #include <exec/libraries.h>
21 #include <exec/execbase.h>
22 #include <exec/resident.h>
23 #include <exec/memory.h>
25 #include <devices/clipboard.h>
27 #include <datatypes/soundclass.h>
29 #include <proto/exec.h>
30 #include <proto/dos.h>
31 #include <proto/intuition.h>
32 #include <proto/utility.h>
33 #include <proto/datatypes.h>
34 #include <proto/dtclass.h>
36 #include "riff-wave.h"
37 #include "decoders.h"
39 #define OK (0)
40 #define NOTOK DTERROR_INVALID_DATA
41 #define ERROR_EOF DTERROR_NOT_ENOUGH_DATA
43 #define ReadError(C) ((C == -1) ? IoErr() : ERROR_EOF)
44 #define WriteError(C) IoErr()
45 #endif