w.i.p - correctly remap ColorModel_TrueColor images.
[AROS.git] / workbench / devs / AHI / Device / debug.h
blobac38338189b51b775f48495c3a279229ed509f18
1 /*
2 AHI - Hardware independent audio subsystem
3 Copyright (C) 2017 The AROS Dev Team
4 Copyright (C) 1996-2005 Martin Blom <martin@blom.org>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with this library; if not, write to the
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
19 MA 02139, USA.
22 #ifndef ahi_debug_h
23 #define ahi_debug_h
25 #include <devices/ahi.h>
26 #include <proto/exec.h>
29 void
30 KPrintFArgs( UBYTE* fmt,
31 #if defined(__AROS__)
32 RAWARG args );
33 #else
34 ULONG * args );
35 #endif
37 #ifndef __AMIGAOS4__
38 #if defined(__AROS__)
39 #define KPrintF( fmt, ... ) \
40 ({ \
41 const IPTR _args[] = {AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
42 KPrintFArgs( (fmt), (RAWARG)_args ); \
44 #else
45 #define KPrintF( fmt, ... ) \
46 ({ \
47 ULONG _args[] = { __VA_ARGS__ }; \
48 KPrintFArgs( (fmt), _args ); \
50 #endif
51 #else
52 #define KPrintF DebugPrintF
53 #endif
55 #define DEBUG 1
56 #if defined(__AROS__) && (DEBUG > 0)
57 #define ahibug(...) KPrintF(__VA_ARGS__)
58 #else
59 #define ahibug(...)
60 #endif
62 void
63 Debug_AllocAudioA( struct TagItem *tags );
65 void
66 Debug_FreeAudio( struct AHIPrivAudioCtrl *audioctrl );
68 void
69 Debug_KillAudio( void );
71 void
72 Debug_ControlAudioA( struct AHIPrivAudioCtrl *audioctrl, struct TagItem *tags );
75 void
76 Debug_SetVol( UWORD chan, Fixed vol, sposition pan, struct AHIPrivAudioCtrl *audioctrl, ULONG flags);
78 void
79 Debug_SetFreq( UWORD chan, ULONG freq, struct AHIPrivAudioCtrl *audioctrl, ULONG flags);
81 void
82 Debug_SetSound( UWORD chan, UWORD sound, ULONG offset, LONG length, struct AHIPrivAudioCtrl *audioctrl, ULONG flags);
84 void
85 Debug_SetEffect( IPTR *effect, struct AHIPrivAudioCtrl *audioctrl );
87 void
88 Debug_LoadSound( UWORD sound, ULONG type, APTR info, struct AHIPrivAudioCtrl *audioctrl );
90 void
91 Debug_UnloadSound( UWORD sound, struct AHIPrivAudioCtrl *audioctrl );
93 void
94 Debug_NextAudioID( IPTR id);
96 void
97 Debug_GetAudioAttrsA( IPTR id, struct AHIPrivAudioCtrl *audioctrl, struct TagItem *tags );
99 void
100 Debug_BestAudioIDA( struct TagItem *tags );
102 void
103 Debug_AllocAudioRequestA( struct TagItem *tags );
105 void
106 Debug_AudioRequestA( struct AHIAudioModeRequester *req, struct TagItem *tags );
108 void
109 Debug_FreeAudioRequest( struct AHIAudioModeRequester *req );
111 void
112 Debug_PlayA( struct AHIPrivAudioCtrl *audioctrl, struct TagItem *tags );
114 void
115 Debug_SampleFrameSize( ULONG sampletype);
117 void
118 Debug_AddAudioMode(struct TagItem *tags );
120 void
121 Debug_RemoveAudioMode( IPTR id);
123 void
124 Debug_LoadModeFile( STRPTR name);
126 #endif /* ahi_debug_h */