Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / AHI / Device / warpup.h
blob0e6e77ae812de4e63b980a17f5d6fdeceb5b60e5
1 /*
2 AHI - Hardware independent audio subsystem
3 Copyright (C) 1996-2005 Martin Blom <martin@blom.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
18 MA 02139, USA.
21 #ifndef ahi_warpup_h
22 #define ahi_warpup_h
24 #include <exec/interrupts.h>
25 #include <utility/hooks.h>
27 #include "ahi_def.h"
29 struct PowerPCContext
31 volatile int Command;
32 volatile void* Argument;
34 int Active;
35 struct Hook* Hook;
36 void* Dst;
37 void* XLock;
39 struct AHIPrivAudioCtrl* AudioCtrl;
40 struct Library* PowerPCBase;
42 struct Interrupt* MixInterrupt;
43 void* MixBuffer;
46 #define PPCC_COM_NONE 0
47 #define PPCC_COM_ACK 1
48 #define PPCC_COM_START 2
49 #define PPCC_COM_CONTINUE 3
50 #define PPCC_COM_INIT 4
51 #define PPCC_COM_SOUNDFUNC 5
52 #define PPCC_COM_QUIT 6
53 #define PPCC_COM_DEBUG 7
54 #define PPCC_COM_FINISHED 8
56 BOOL
57 WarpUpInit( struct AHIPrivAudioCtrl* audioctrl );
59 void
60 WarpUpCallMixer( struct AHIPrivAudioCtrl* audioctrl,
61 void* dst );
63 void
64 WarpUpCallSoundHook( struct AHIPrivAudioCtrl *audioctrl,
65 void* arg );
67 void
68 WarpUpCleanUp( struct AHIPrivAudioCtrl* audioctrl );
70 #endif /* ahi_warpup_h */