Rev 359 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 359 | Rev 376 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | extrn hSound |
8 | extrn hSound |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 10... | Line 10... | ||
10 | public _StopBuffer@4 |
10 | public _StopBuffer@4 |
11 | 11 | ||
12 | align 4 |
- | |
13 | proc _StopBuffer@4 stdcall, str: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 | _StopBuffer@4: ;str: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_STOP |
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 SND_STOP ;.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 |
- | 32 | add esp, 24 |
|
39 | int 0x40 |
33 | pop ecx |
40 | pop ecx |
34 | pop ebx |