forked from KolibriOS/kolibrios
update SOUND_VERSION
git-svn-id: svn://kolibrios.org@573 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -29,6 +29,7 @@ SND_GETVOLUME equ 13
|
||||
SND_SETPAN equ 14
|
||||
SND_GETPAN equ 15
|
||||
SND_GETBUFFSIZE equ 16
|
||||
SND_GETFREESPACE equ 17
|
||||
|
||||
DEV_SET_BUFF equ 4
|
||||
DEV_NOTIFY equ 5
|
||||
|
@@ -6,6 +6,7 @@ include "proc32.inc"
|
||||
section '.text' align 16 code readable executable
|
||||
|
||||
public _GetBufferSize@8
|
||||
public _GetBufferFree@8
|
||||
|
||||
extrn hSound
|
||||
|
||||
@@ -34,3 +35,29 @@ _GetBufferSize@8: ;str:dword, p_size:dword
|
||||
pop ebx
|
||||
ret 8
|
||||
|
||||
align 4
|
||||
_GetBufferFree@8: ;str:dword, p_free:dword
|
||||
push ebx
|
||||
push ecx
|
||||
|
||||
lea ebx, [esp+12] ;[stream]
|
||||
push 0 ;storage for free_space
|
||||
mov eax, esp
|
||||
|
||||
push 4 ;.out_size
|
||||
push eax ;.output
|
||||
push 4 ;.inp_size
|
||||
push ebx ;.input
|
||||
push SND_GETFREESPACE ;.code
|
||||
push dword [hSound] ;.handle
|
||||
|
||||
mov eax, 68
|
||||
mov ebx, 17
|
||||
mov ecx, esp
|
||||
int 0x40
|
||||
add esp, 24
|
||||
mov ecx, [esp+20] ; p_free
|
||||
pop dword [ecx]
|
||||
pop ecx
|
||||
pop ebx
|
||||
ret 8
|
||||
|
Reference in New Issue
Block a user