Subversion Repositories Kolibri OS

Rev

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

Rev 368 Rev 376
Line 8... Line 8...
8
extrn hSound      
8
extrn hSound      
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
public _ResetBuffer@8
10
public _ResetBuffer@8
11
 
11
 
12
align 4
-
 
13
proc _ResetBuffer@8 stdcall, str:dword, flags: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
_ResetBuffer@8:         ;str:dword, flags:dword
-
 
14
 
22
 
15
           push ebx
23
           push ebx
16
           push ecx
24
           push ecx
-
 
25
           mov eax, [hSound]
17
           
26
           lea ebx, [str]
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], SND_RESET
22
           push eax            ;.output
31
           mov [input], ebx
23
           push 12             ;.inp_size
Line 32... Line 24...
32
           mov [inp_size], 8
24
           push ebx            ;.input
33
           mov [output], ecx
25
           push SND_RESET      ;.code
34
           mov [out_size], ecx
26
           push dword [hSound] ;.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
32
           add esp, 24