Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Drivers / Filesave / DriverData.h
blobc86afc0d33c03c8b0a47cf8fc5435eceed683815
1 #ifndef AHI_Drivers_Filesave_DriverData_h
2 #define AHI_Drivers_Filesave_DriverData_h
4 #include <exec/libraries.h>
5 #include <dos/dos.h>
6 #include <graphics/gfxbase.h>
8 #include <proto/asl.h>
9 #include <proto/datatypes.h>
10 #include <proto/dos.h>
11 #include <proto/graphics.h>
13 #include "DriverBase.h"
15 struct FilesaveBase
17 struct DriverBase driverbase;
18 struct Library* aslbase;
19 struct DosLibrary* dosbase;
20 struct Library* dtsbase;
21 struct GfxBase* gfxbase;
22 #ifdef __AMIGAOS4__
23 struct AslIFace* iasl;
24 struct DOSIFace* idos;
25 struct DataTypesIFace* idatatypes;
26 #endif
29 #define DRIVERBASE_SIZEOF (sizeof (struct FilesaveBase))
31 #define AslBase (FilesaveBase->aslbase)
32 #define DOSBase (FilesaveBase->dosbase)
33 #define DataTypesBase (FilesaveBase->dtsbase)
34 #define GfxBase (FilesaveBase->gfxbase)
36 #ifdef __AMIGAOS4__
37 #define IDOS (FilesaveBase->idos)
38 #define IAsl (FilesaveBase->iasl)
39 #define IDataTypes (FilesaveBase->idatatypes)
40 #endif
43 struct FilesaveData
45 struct DriverData fs_DriverData;
46 UBYTE fs_Flags;
47 UBYTE fs_Pad1;
48 BYTE fs_MasterSignal;
49 BYTE fs_SlaveSignal;
50 struct Process *fs_MasterTask;
51 struct Process *fs_SlaveTask;
52 struct FileRequester *fs_FileReq;
53 struct DriverBase *fs_AHIsubBase;
54 ULONG fs_Format;
55 APTR fs_MixBuffer;
56 APTR fs_SaveBuffer;
57 APTR fs_SaveBuffer2;
58 ULONG fs_SaveBufferSize;
60 BYTE fs_RecMasterSignal;
61 BYTE fs_RecSlaveSignal;
62 struct Process *fs_RecSlaveTask;
63 struct FileRequester *fs_RecFileReq;
64 WORD *fs_RecBuffer;
67 #define AHIDB_FileSaveFormat (AHIDB_UserBase+0) /* Private tag */
69 #define FORMAT_8SVX 0
70 #define FORMAT_AIFF 1
71 #define FORMAT_AIFC 2
72 #define FORMAT_S16 3
73 #define FORMAT_WAVE 4
75 #define SAVEBUFFERSIZE 100000 // in samples (min)
76 #define RECBUFFERSIZE 10000 // in samples
80 #endif /* AHI_Drivers_Filesave_DriverData_h */