Rev 376 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 376 | Rev 573 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | include "proc32.inc" |
4 | include "proc32.inc" |
Line 5... | Line 5... | ||
5 | 5 | ||
Line 6... | Line 6... | ||
6 | section '.text' align 16 code readable executable |
6 | section '.text' align 16 code readable executable |
- | 7 | ||
Line 7... | Line 8... | ||
7 | 8 | public _GetBufferSize@8 |
|
Line 8... | Line 9... | ||
8 | public _GetBufferSize@8 |
9 | public _GetBufferFree@8 |
9 | 10 | ||
Line 32... | Line 33... | ||
32 | add esp, 24 |
33 | add esp, 24 |
33 | pop ecx |
34 | pop ecx |
34 | pop ebx |
35 | pop ebx |
35 | ret 8 |
36 | ret 8 |
Line -... | Line 37... | ||
- | 37 | ||
- | 38 | align 4 |
|
- | 39 | _GetBufferFree@8: ;str:dword, p_free:dword |
|
- | 40 | push ebx |
|
- | 41 | push ecx |
|
- | 42 | ||
- | 43 | lea ebx, [esp+12] ;[stream] |
|
- | 44 | push 0 ;storage for free_space |
|
- | 45 | mov eax, esp |
|
- | 46 | ||
- | 47 | push 4 ;.out_size |
|
- | 48 | push eax ;.output |
|
- | 49 | push 4 ;.inp_size |
|
- | 50 | push ebx ;.input |
|
- | 51 | push SND_GETFREESPACE ;.code |
|
- | 52 | push dword [hSound] ;.handle |
|
- | 53 | ||
- | 54 | mov eax, 68 |
|
- | 55 | mov ebx, 17 |
|
- | 56 | mov ecx, esp |
|
- | 57 | int 0x40 |
|
- | 58 | add esp, 24 |
|
- | 59 | mov ecx, [esp+20] ; p_free |
|
- | 60 | pop dword [ecx] |
|
- | 61 | pop ecx |
|
- | 62 | pop ebx |