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