Subversion Repositories Kolibri OS

Rev

Rev 374 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 374 Rev 376
Line 8... Line 8...
8
public _SetMasterVol@4
8
public _SetMasterVol@4
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
extrn hrdwSound   
10
extrn hrdwSound   
11
 
11
 
12
align 4
-
 
13
proc _SetMasterVol@4 stdcall,vol:dword
-
 
14
           locals
-
 
15
             handle     dd ?
-
 
16
             io_code    dd ?
-
 
17
             input      dd ?
-
 
18
             inp_size   dd ?
-
 
19
             output     dd ?
-
 
Line 20... Line 12...
20
             out_size   dd ?
12
align 4
21
           endl
13
_SetMasterVol@4:         ;vol:dword
-
 
14
           
22
           
15
           push ebx
23
           push ebx
16
           push ecx
24
           push ecx
-
 
25
           mov eax, [hrdwSound]
17
 
26
           lea ebx, [vol]
18
           xor eax, eax
27
           xor ecx, ecx
19
           lea ebx, [esp+12]   ;[stream]
28
 
20
 
29
           mov [handle], eax
21
           push eax            ;.out_size
30
           mov [io_code], DEV_SET_MASTERVOL
22
           push eax            ;.output
31
           mov [input], ebx
23
           push 4              ;.inp_size
Line 32... Line 24...
32
           mov [inp_size], 4
24
           push ebx            ;.input
33
           mov [output], ecx
25
           push DEV_SET_MASTERVOL ;.code
34
           mov [out_size], ecx
26
           push dword [hrdwSound] ;.handle
35
 
27
 
-
 
28
           mov eax, 68
36
           mov eax, 68
29
           mov ebx, 17
37
           mov ebx, 17
30
           mov ecx, esp
38
           lea ecx, [handle]
31
           int 0x40
39
           int 0x40
-