1 IFND LIBRARIES_AHISUB_I
2 LIBRARIES_AHISUB_I
SET 1
5 ** $VER
: ahi_sub.i
6.0 (02.02.2005)
8 ** ahi
/[driver
].audio definitions
10 ** (C
) Copyright
1994-2005 Martin Blom
11 ** All Rights Reserved.
15 *------------------------------------------------------------------------*
19 INCLUDE 'exec
/types.i'
22 IFND UTILITY_TAGITEM_I
23 INCLUDE 'utility
/tagitem.i'
27 INCLUDE 'devices
/ahi.i'
30 IFND LIBRARIES_IFFPARSE_I
31 INCLUDE 'libraries
/iffparse.i'
34 *------------------------------------------------------------------------*
39 STRUCTURE AHIAudioCtrlDrv
,0
40 STRUCT ahiac_AudioCtrl
,AHIAudioCtrl_SIZEOF
41 ULONG ahiac_Flags
; See below for definition
42 APTR ahiac_SoundFunc
; AHIA_SoundFunc
(Hook
)
43 APTR ahiac_PlayerFunc
; AHIA_PlayerFunc
(Hook
)
44 Fixed ahiac_PlayerFreq
; AHIA_PlayerFreq
45 Fixed ahiac_MinPlayerFreq
; AHIA_MinPlayerFreq
46 Fixed ahiac_MaxPlayerFreq
; AHIA_MaxPlayerFreq
47 ULONG ahiac_MixFreq
; AHIA_MixFreq
48 UWORD ahiac_Channels
; AHIA_Channels
49 UWORD ahiac_Sounds
; AHIA_Sounds
51 ULONG ahiac_DriverData
; Unused. Store whatever you want here.
53 APTR ahiac_MixerFunc
; Mixing routine Hook
54 APTR ahiac_SamplerFunc
; Sampler routine Hook
56 ULONG ahiac_BuffSamples
; Samples to mix this pass.
57 ULONG ahiac_MinBuffSamples
; Min. samples to mix each pass.
58 ULONG ahiac_MaxBuffSamples
; Max. samples to mix each pass.
59 ULONG ahiac_BuffSize
; Buffer size ahiac_MixerFunc needs.
60 ULONG ahiac_BuffType
; Buffer format
(V2
)
61 FPTR ahiac_PreTimer
; Call before mixing
(V4
)
62 FPTR ahiac_PostTimer
; Call after mixing
(V4
)
63 ULONG ahiac_AntiClickSamples
; AntiClick samples
(V6
)
64 APTR ahiac_PreTimerFunc
; A Hook wrapper for ahiac_PreTimer
(V6
)
65 APTR ahiac_PostTimerFunc
; A Hook wrapper for ahiac_PostTimer
(V6
)
67 ; The rest is
PRIVATE! Hands off
! They may change any time.
68 ; [lots of private stuff
]
69 LABEL AHIAudioCtrlDrv_SIZEOF
; Do not use
!
73 AHIDB_UserBase EQU AHI_TagBase
+500 ; Use for driver specific tags
78 ; AHIsub_AllocAudio
() return flags
82 BITDEF AHIS
,KNOWSTEREO
,3
83 BITDEF AHIS
,KNOWHIFI
,4
84 BITDEF AHIS
,CANRECORD
,5
85 BITDEF AHIS
,CANPOSTPROCESS
,6
86 BITDEF AHIS
,KNOWMULTICHANNEL
,7
88 ; AHIsub_Start
() and AHIsub_Stop
() flags
97 BITDEF AHIAC
,PINGPONG
,4
99 BITDEF AHIAC
,MULTTAB
,6 ; Private
!
100 BITDEF AHIAC
,MULTICHANNEL
,7
102 ; AHIsub_Set#? and AHIsub_
(Un
)LoadSound return code
105 ; IFF chunk names for the audio mode file
106 ID_AHIM EQU 'AHIM'
; AHI Modes
107 ID_AUDN EQU 'AUDN'
; AUDio driver Name
108 ID_AUDD EQU 'AUDD'
; AUDio driver Data
109 ID_AUDM EQU 'AUDM'
; AUDio Mode
111 ENDC
; LIBRARIES_AHISUB_I