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,
25 #include <devices/ahi.h>
26 #include <proto/exec.h>
30 KPrintFArgs( UBYTE
* fmt
,
39 #define KPrintF( fmt, ... ) \
41 const IPTR _args[] = {AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
42 KPrintFArgs( (fmt), (RAWARG)_args ); \
45 #define KPrintF( fmt, ... ) \
47 ULONG _args[] = { __VA_ARGS__ }; \
48 KPrintFArgs( (fmt), _args ); \
52 #define KPrintF DebugPrintF
56 #if defined(__AROS__) && (DEBUG > 0)
57 #define ahibug(...) KPrintF(__VA_ARGS__)
63 Debug_AllocAudioA( struct TagItem
*tags
);
66 Debug_FreeAudio( struct AHIPrivAudioCtrl
*audioctrl
);
69 Debug_KillAudio( void );
72 Debug_ControlAudioA( struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
76 Debug_SetVol( UWORD chan
, Fixed vol
, sposition pan
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
79 Debug_SetFreq( UWORD chan
, ULONG freq
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
82 Debug_SetSound( UWORD chan
, UWORD sound
, ULONG offset
, LONG length
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
85 Debug_SetEffect( IPTR
*effect
, struct AHIPrivAudioCtrl
*audioctrl
);
88 Debug_LoadSound( UWORD sound
, ULONG type
, APTR info
, struct AHIPrivAudioCtrl
*audioctrl
);
91 Debug_UnloadSound( UWORD sound
, struct AHIPrivAudioCtrl
*audioctrl
);
94 Debug_NextAudioID( IPTR id
);
97 Debug_GetAudioAttrsA( IPTR id
, struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
100 Debug_BestAudioIDA( struct TagItem
*tags
);
103 Debug_AllocAudioRequestA( struct TagItem
*tags
);
106 Debug_AudioRequestA( struct AHIAudioModeRequester
*req
, struct TagItem
*tags
);
109 Debug_FreeAudioRequest( struct AHIAudioModeRequester
*req
);
112 Debug_PlayA( struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
115 Debug_SampleFrameSize( ULONG sampletype
);
118 Debug_AddAudioMode(struct TagItem
*tags
);
121 Debug_RemoveAudioMode( IPTR id
);
124 Debug_LoadModeFile( STRPTR name
);
126 #endif /* ahi_debug_h */