1 ==copyright Copyright © 1994-2005 Martin Blom
4 ==basetype struct Library *
5 ==libname ahi_sub.library
6 ==include <exec/types.h>
7 ==include <exec/libraries.h>
8 ==include <utility/tagitem.h>
9 ==include <libraries/ahi_sub.h>
13 * Functions for basic audio input and output
14 ULONG AHIsub_AllocAudio(struct TagItem * tagList, struct AHIAudioCtrlDrv * AudioCtrl) (a1,a2)
15 void AHIsub_FreeAudio(struct AHIAudioCtrlDrv * AudioCtrl) (a2)
16 void AHIsub_Disable(struct AHIAudioCtrlDrv * AudioCtrl) (a2)
17 void AHIsub_Enable(struct AHIAudioCtrlDrv * AudioCtrl) (a2)
18 ULONG AHIsub_Start(ULONG Flags, struct AHIAudioCtrlDrv * AudioCtrl) (d0,a2)
19 ULONG AHIsub_Update(ULONG Flags, struct AHIAudioCtrlDrv * AudioCtrl) (d0,a2)
20 ULONG AHIsub_Stop(ULONG Flags, struct AHIAudioCtrlDrv * AudioCtrl) (d0,a2)
22 * Functions for hardware acceleration
23 ULONG AHIsub_SetVol(UWORD Channel, Fixed Volume, sposition Pan,
24 struct AHIAudioCtrlDrv * AudioCtrl, ULONG Flags) (d0,d1,d2,a2,d3)
25 ULONG AHIsub_SetFreq(UWORD Channel, ULONG Freq, struct AHIAudioCtrlDrv * AudioCtrl,
26 ULONG Flags) (d0,d1,a2,d2)
27 ULONG AHIsub_SetSound(UWORD Channel, UWORD Sound, ULONG Offset, LONG Length,
28 struct AHIAudioCtrlDrv * AudioCtrl, ULONG Flags) (d0,d1,d2,d3,a2,d4)
29 ULONG AHIsub_SetEffect(APTR Effect, struct AHIAudioCtrlDrv * AudioCtrl) (a0,a2)
30 ULONG AHIsub_LoadSound(UWORD Sound, ULONG Type, APTR Info, struct AHIAudioCtrlDrv * AudioCtrl) (d0,d1,a0,a2)
31 ULONG AHIsub_UnloadSound(UWORD Sound, struct AHIAudioCtrlDrv * Audioctrl) (d0,a2)
33 * Functions for driver queries
34 IPTR AHIsub_GetAttr(ULONG Attribute, LONG Argument, IPTR DefValue, struct TagItem * tagList,
35 struct AHIAudioCtrlDrv * AudioCtrl) (d0,d1,d2,a1,a2)
37 * Functions for controlling the analog mixer etc.
38 LONG AHIsub_HardwareControl(ULONG Attribute, LONG Argument, struct AHIAudioCtrlDrv * AudioCtrl) (d0,d1,a2)