Subversion Repositories Kolibri OS

Rev

Rev 145 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
145 halyavin 1
format ELF
159 halyavin 2
include "public_stdcall.inc"
145 halyavin 3
section '.text' executable
159 halyavin 4
public_stdcall _msys_sound_load_block,4
145 halyavin 5
;arg1 - blockptr
6
  mov   edx,ebx
7
  mov   eax,55
8
  xor   ebx,ebx
9
  mov   ecx,[esp+4]
10
  int   0x40
11
  mov   ebx,edx
12
  ret   4
13
 
159 halyavin 14
public_stdcall _msys_sound_play_block,0
145 halyavin 15
  mov   edx,ebx
16
  mov   eax,55
17
  xor   ebx,ebx
18
  inc   ebx
19
  int   0x40
20
  mov   ebx,edx
21
  ret
22
 
159 halyavin 23
public_stdcall _msys_sound_set_channels,4
145 halyavin 24
;arg1 - channels
25
  push  ebx
26
  mov   eax,55
27
  mov   ebx,2
28
  xor   ecx,ecx
29
  mov   edx,[esp+8]
30
  int   0x40
31
  pop   ebx
32
  ret   4
33
 
159 halyavin 34
public_stdcall _msys_sound_set_data_size,4
145 halyavin 35
;arg1 - data size
36
  push  ebx
37
  mov   eax,55
38
  mov   ebx,2
39
  xor   ecx,ecx
40
  inc   ecx
41
  mov   edx,[esp+8]
42
  int   0x40
43
  pop   ebx
44
  ret   4
45
 
159 halyavin 46
public_stdcall _msys_sound_set_frequency,4
145 halyavin 47
;arg1 - frequency
48
  push  ebx
49
  mov   eax,55
50
  mov   ebx,2
51
  mov   ecx,2
52
  mov   edx,[esp+8]
53
  int   0x40
54
  pop   ebx
55
  ret   4
56
 
159 halyavin 57
public_stdcall _msys_sound_speaker_play,4
145 halyavin 58
;arg1 - data
59
  mov   edx,ebx
60
  mov   eax,55
61
  mov   ebx,55
62
  mov   ecx,[esp+4]
63
  int   0x40
64
  mov   ebx,edx
65
  ret   4