1 ; Run me to assemble with PhxAss
4 PhxAss SYMDEBUG LINEDEBUG QUIET OPT NRQBPSMD __test.s
12 include lvo
/exec_lib.i
15 include hardware
/all.i
25 ; call AllocMem ;flushlibs
45 move.
l ctrlblock
(pc
),a2
48 moveq
#AHIST_SAMPLE,d1
53 moveq
#AHIST_SAMPLE,d1
58 ; move.
l #AHIST_INPUT,d1
63 call AHI_ControlAudioA
68 ; move.
l #samp2_len,d2 ;offset
69 ; move.
l #-samp2_len,d3 ;length
72 moveq
#AHISF_IMM,d4 ;flags
76 move.
l #$10000,d1 ;volume
77 move.
l #$10000,d2 ;panning
87 move.
l #TAG_DONE,-(sp)
89 move.
l #AHIA_PlayerFreq,-(sp)
91 move.
l #AHIC_Play,-(sp)
94 jsr _LVOAHI_ControlAudioA
(a6
)
98 ; moveq
#1,d0 ;channel
100 ; moveq
#0,d2 ;offset
101 ; moveq
#0,d3 ;length
102 ; moveq
#AHISF_IMM,d4 ;flags
106 ; move.
l #$10000,d1 ;volume
107 ; move.
l #$c000,d2 ;panning
108 ; moveq
#AHISF_IMM,d3
113 ; moveq
#AHISF_IMM,d2
117 ; lea mvstruct
(pc
),a0
120 lea mask1struct
(pc
),a0
123 lea echostruct
(pc
),a0
126 lea mask2struct
(pc
),a0
133 moveq
#AHISF_IMM,d4 ;flags
137 move.
l #$10000,d1 ;volume
138 move.
l #$f000,d2 ;panning
148 moveq
#AHI_NOSOUND,d1 ;sound
154 ********** INPUT
*************************
156 ; moveq
#2,d0 ;channel
158 ; moveq
#0,d2 ;offset
159 ; moveq
#0,d3 ;length
160 ; moveq
#AHISF_IMM,d4 ;flags
164 ; move.
l #$10000,d1 ;volume
165 ; move.
l #$f000,d2 ;panning
166 ; moveq
#AHISF_IMM,d3
170 ; move.
l #AHI_MIXFREQ,d1
171 ; moveq
#AHISF_IMM,d2
182 move.
l ctrlblock
(pc
),a2
190 move.
l dosbase
(pc
),a1
205 dc.
l AHIET_MASTERVOLUME
209 dc.
l AHIET_DSPECHO ; ahie_Effect
210 dc.
l 6000 ; ahiede_Delay
211 dc.
l $
8000 ; ahiede_Feedback
212 dc.
l $
8000 ; ahiede_Mix
213 dc.
l $
10000 ; ahiede_Cross
218 dc.
b AHIEDM_DRY
, AHIEDM_WET
, AHIEDM_DRY
, AHIEDM_DRY
223 dc.
b AHIEDM_WET
, AHIEDM_DRY
, AHIEDM_DRY
, AHIEDM_DRY
226 dc.
l AHIA_MixFreq
,17640
227 dc.
l AHIA_AudioID
,$
00020018
230 dc.
l AHIA_PlayerFreq
, 50<<16
231 dc.
l AHIA_MinPlayerFreq
, 20<<16
232 dc.
l AHIA_MaxPlayerFreq
, 70<<16
248 incdir Projekt
:ahi
/samples
/
252 ; DC.
B $
0D
,$
25,$
3C
,$
51,$
63,$
71,$
7A,$
7F
,$
7F
,$
7A,$
71,$
63,$
51,$
3C
,$
25,$
0D
253 ; DC.
B $
F3,$DB
,$C4
,$AF
,$
9D
,$
8F
,$
86,$
81,$
81,$
86,$
8F
,$
9D
,$AF
,$C4
,$DB
,$
F3
257 samp1_len EQU
(*-samp1
)/2
263 samp2_len EQU
(*-samp2
)/2