2007-02-22 07:40:13 +01:00
|
|
|
format MS COFF
|
|
|
|
|
|
|
|
include "snd.inc"
|
|
|
|
include "proc32.inc"
|
|
|
|
|
|
|
|
section '.text' align 16 code readable executable
|
|
|
|
|
2007-02-25 10:21:19 +01:00
|
|
|
public _GetBufferSize@4
|
2007-02-22 07:40:13 +01:00
|
|
|
|
2007-02-25 10:21:19 +01:00
|
|
|
extrn hSound
|
2007-02-22 07:40:13 +01:00
|
|
|
|
|
|
|
align 4
|
2007-02-25 10:21:19 +01:00
|
|
|
proc _GetBufferSize@4 stdcall, str:dword
|
2007-02-22 07:40:13 +01:00
|
|
|
locals
|
|
|
|
handle dd ?
|
|
|
|
io_code dd ?
|
|
|
|
input dd ?
|
|
|
|
inp_size dd ?
|
|
|
|
output dd ?
|
|
|
|
out_size dd ?
|
|
|
|
endl
|
2007-02-25 10:21:19 +01:00
|
|
|
|
2007-02-22 07:40:13 +01:00
|
|
|
push ebx
|
|
|
|
push ecx
|
|
|
|
mov eax, [hSound]
|
|
|
|
lea ebx, [str]
|
|
|
|
xor ecx, ecx
|
|
|
|
|
|
|
|
mov [handle], eax
|
2007-02-25 10:21:19 +01:00
|
|
|
mov [io_code], SND_GETBUFFSIZE
|
2007-02-22 07:40:13 +01:00
|
|
|
mov [input], ebx
|
2007-02-25 10:21:19 +01:00
|
|
|
mov [inp_size], 4
|
2007-02-22 07:40:13 +01:00
|
|
|
mov [output], ecx
|
|
|
|
mov [out_size], ecx
|
|
|
|
|
|
|
|
mov eax, 68
|
|
|
|
mov ebx, 17
|
|
|
|
lea ecx, [handle]
|
|
|
|
int 0x40
|
|
|
|
pop ecx
|
|
|
|
pop ebx
|
|
|
|
ret
|
|
|
|
endp
|