/programs/develop/sdk/trunk/sound/src/sndsetmvol.asm |
---|
0,0 → 1,44 |
format MS COFF |
include "snd.inc" |
include "proc32.inc" |
section '.text' align 16 code readable executable |
public _SetMasterVol@4 |
extrn hrdwSound |
align 4 |
proc _SetMasterVol@4 stdcall,vol:dword |
locals |
handle dd ? |
io_code dd ? |
input dd ? |
inp_size dd ? |
output dd ? |
out_size dd ? |
endl |
push ebx |
push ecx |
mov eax, [hrdwSound] |
lea ebx, [vol] |
xor ecx, ecx |
mov [handle], eax |
mov [io_code], DEV_SET_MASTERVOL |
mov [input], ebx |
mov [inp_size], 4 |
mov [output], ecx |
mov [out_size], ecx |
mov eax, 68 |
mov ebx, 17 |
lea ecx, [handle] |
int 0x40 |
pop ecx |
pop ebx |
ret |
endp |