Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 376 → Rev 375

/programs/develop/sdk/trunk/sound/src/sndreset.asm
10,27 → 10,34
public _ResetBuffer@8
 
align 4
_ResetBuffer@8: ;str:dword, flags:dword
proc _ResetBuffer@8 stdcall, str:dword, flags:dword
locals
handle dd ?
io_code dd ?
input dd ?
inp_size dd ?
output dd ?
out_size dd ?
endl
 
push ebx
push ecx
mov eax, [hSound]
lea ebx, [str]
xor ecx, ecx
xor eax, eax
lea ebx, [esp+12] ;[stream]
mov [handle], eax
mov [io_code], SND_RESET
mov [input], ebx
mov [inp_size], 8
mov [output], ecx
mov [out_size], ecx
 
push eax ;.out_size
push eax ;.output
push 12 ;.inp_size
push ebx ;.input
push SND_RESET ;.code
push dword [hSound] ;.handle
 
mov eax, 68
mov ebx, 17
mov ecx, esp
lea ecx, [handle]
int 0x40
add esp, 24
pop ecx
pop ebx
ret 8
ret
endp