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 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
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
extrn hSound      
8
extrn hSound      
9
 
9
 
10
public _GetFormat@4
-
 
11
 
-
 
12
align 4
-
 
13
proc _GetFormat@4 stdcall, str:dword
-
 
14
           locals
-
 
15
             handle     dd ?
-
 
16
             io_code    dd ?
-
 
17
             input      dd ?
-
 
18
             inp_size   dd ?
-
 
19
             output     dd ?
10
public _GetFormat@8
20
             out_size   dd ?
11
 
-
 
12
align 4
21
           endl
13
_GetFormat@8:       ;str:dword, p_fmt:dword
22
 
14
           push ebx
23
           push ebx
-
 
24
           push ecx
15
           push ecx
25
           mov eax, [hSound]
16
           
26
           lea ebx, [str]
17
           lea eax, [esp+16]   ;p_fmt
27
           xor ecx, ecx
18
           lea ebx, [esp+12]   ;[stream]
28
 
19
 
29
           mov [handle], eax
20
           push 4            ;.out_size
30
           mov [io_code], SND_GETFORMAT
21
           push eax            ;.output
Line 31... Line 22...
31
           mov [input], ebx
22
           push 4              ;.inp_size
32
           mov [inp_size], 4
23
           push ebx            ;.input
33
           mov [output], ecx
24
           push SND_GETFORMAT  ;.code
34
           mov [out_size], ecx
25
           push dword [hSound] ;.handle
-
 
26
 
35
 
27
           mov eax, 68
36
           mov eax, 68
28
           mov ebx, 17
37
           mov ebx, 17
29
           mov ecx, esp
38
           lea ecx, [handle]
30
           int 0x40