2015-02-23 10:47:22 +00:00
|
|
|
; int DEFCONV snd_delay_until_volume(__int8 volume)
|
|
|
|
proc_defconv snd_delay_until_volume
|
2014-11-25 20:21:17 +00:00
|
|
|
@@volume = byte ptr (cPtrSize + 2)
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
|
|
|
|
@@loop:
|
2014-11-27 18:35:54 +00:00
|
|
|
mov ah, KAJA_GET_VOLUME
|
2015-02-23 10:47:22 +00:00
|
|
|
cmp _snd_midi_active, 1
|
2014-11-25 20:21:17 +00:00
|
|
|
jz short @@midi
|
|
|
|
int 60h
|
|
|
|
jmp short @@reached?
|
|
|
|
|
|
|
|
@@midi:
|
|
|
|
int 61h
|
|
|
|
|
|
|
|
@@reached?:
|
|
|
|
cmp al, [bp+@@volume]
|
|
|
|
jz short @@ret
|
|
|
|
jmp short @@loop
|
|
|
|
|
|
|
|
@@ret:
|
|
|
|
pop bp
|
|
|
|
ret
|
2015-02-23 10:47:22 +00:00
|
|
|
endp_defconv
|
2014-11-25 20:21:17 +00:00
|
|
|
nop ; word alignment
|