forked from KolibriOS/kolibrios
72fe949f6f
git-svn-id: svn://kolibrios.org@374 a494cfbc-eb01-0410-851d-a64ba20cac60
45 lines
943 B
NASM
45 lines
943 B
NASM
format MS COFF
|
|
|
|
include "snd.inc"
|
|
include "proc32.inc"
|
|
|
|
section '.text' align 16 code readable executable
|
|
|
|
public _GetVolume@12
|
|
|
|
extrn hSound
|
|
|
|
align 4
|
|
proc _GetVolume@12 stdcall, str:dword, pleft:dword,pright: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]
|
|
lea ecx, [pleft]
|
|
mov [handle], eax
|
|
mov [io_code], SND_GETVOLUME
|
|
mov [input], ebx
|
|
mov [inp_size], 4
|
|
mov [output], ecx
|
|
mov [out_size], 8
|
|
|
|
mov eax, 68
|
|
mov ebx, 17
|
|
lea ecx, [handle]
|
|
int 0x40
|
|
pop ecx
|
|
pop ebx
|
|
ret
|
|
endp
|
|
|
|
|