forked from KolibriOS/kolibrios
d22ed6d387
git-svn-id: svn://kolibrios.org@5022 a494cfbc-eb01-0410-851d-a64ba20cac60
36 lines
762 B
NASM
36 lines
762 B
NASM
format MS COFF
|
|
|
|
include "snd.inc"
|
|
include "proc32.inc"
|
|
|
|
section '.text' align 16 code readable executable
|
|
|
|
public _GetPan@8
|
|
|
|
extrn hSound
|
|
|
|
align 4
|
|
_GetPan@8: ;str:dword, p_pan:dword
|
|
push ebx
|
|
push ecx
|
|
|
|
lea eax, [esp+16]
|
|
lea ebx, [esp+12] ;[stream]
|
|
|
|
push 4 ;.out_size
|
|
push eax ;.output
|
|
push 4 ;.inp_size
|
|
push ebx ;.input
|
|
push SND_GETPAN ;.code
|
|
push dword [hSound] ;.handle
|
|
|
|
mov eax, 68
|
|
mov ebx, 17
|
|
mov ecx, esp
|
|
int 0x40
|
|
add esp, 24
|
|
pop ecx
|
|
pop ebx
|
|
ret 8
|
|
|