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,
24 #include <devices/ahi.h>
25 #include <proto/exec.h>
29 KPrintFArgs( UBYTE
* fmt
,
33 #define KPrintF( fmt, ... ) \
35 ULONG _args[] = { __VA_ARGS__ }; \
36 KPrintFArgs( (fmt), _args ); \
39 #define KPrintF DebugPrintF
43 Debug_AllocAudioA( struct TagItem
*tags
);
46 Debug_FreeAudio( struct AHIPrivAudioCtrl
*audioctrl
);
49 Debug_KillAudio( void );
52 Debug_ControlAudioA( struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
56 Debug_SetVol( UWORD chan
, Fixed vol
, sposition pan
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
59 Debug_SetFreq( UWORD chan
, ULONG freq
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
62 Debug_SetSound( UWORD chan
, UWORD sound
, ULONG offset
, LONG length
, struct AHIPrivAudioCtrl
*audioctrl
, ULONG flags
);
65 Debug_SetEffect( ULONG
*effect
, struct AHIPrivAudioCtrl
*audioctrl
);
68 Debug_LoadSound( UWORD sound
, ULONG type
, APTR info
, struct AHIPrivAudioCtrl
*audioctrl
);
71 Debug_UnloadSound( UWORD sound
, struct AHIPrivAudioCtrl
*audioctrl
);
74 Debug_NextAudioID( ULONG id
);
77 Debug_GetAudioAttrsA( ULONG id
, struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
80 Debug_BestAudioIDA( struct TagItem
*tags
);
83 Debug_AllocAudioRequestA( struct TagItem
*tags
);
86 Debug_AudioRequestA( struct AHIAudioModeRequester
*req
, struct TagItem
*tags
);
89 Debug_FreeAudioRequest( struct AHIAudioModeRequester
*req
);
92 Debug_PlayA( struct AHIPrivAudioCtrl
*audioctrl
, struct TagItem
*tags
);
95 Debug_SampleFrameSize( ULONG sampletype
);
98 Debug_AddAudioMode(struct TagItem
*tags
);
101 Debug_RemoveAudioMode( ULONG id
);
104 Debug_LoadModeFile( STRPTR name
);
106 #endif /* ahi_debug_h */