Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. format ELF
  2. section '.text' executable
  3. public _msys_sound_load_block
  4. _msys_sound_load_block:
  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.  
  14. public _msys_sound_play_block
  15. _msys_sound_play_block:
  16.   mov   edx,ebx
  17.   mov   eax,55
  18.   xor   ebx,ebx
  19.   inc   ebx
  20.   int   0x40
  21.   mov   ebx,edx
  22.   ret
  23.  
  24. public _msys_sound_set_channels
  25. _msys_sound_set_channels:
  26. ;arg1 - channels
  27.   push  ebx
  28.   mov   eax,55
  29.   mov   ebx,2
  30.   xor   ecx,ecx
  31.   mov   edx,[esp+8]
  32.   int   0x40
  33.   pop   ebx
  34.   ret   4
  35.  
  36. public _msys_sound_set_data_size
  37. _msys_sound_set_data_size:
  38. ;arg1 - data size
  39.   push  ebx
  40.   mov   eax,55
  41.   mov   ebx,2
  42.   xor   ecx,ecx
  43.   inc   ecx
  44.   mov   edx,[esp+8]
  45.   int   0x40
  46.   pop   ebx
  47.   ret   4
  48.  
  49. public _msys_sound_set_frequency
  50. _msys_sound_set_frequency:
  51. ;arg1 - frequency
  52.   push  ebx
  53.   mov   eax,55
  54.   mov   ebx,2
  55.   mov   ecx,2
  56.   mov   edx,[esp+8]
  57.   int   0x40
  58.   pop   ebx
  59.   ret   4
  60.  
  61. public _msys_sound_speaker_play
  62. _msys_sound_speaker_play:
  63. ;arg1 - data
  64.   mov   edx,ebx
  65.   mov   eax,55
  66.   mov   ebx,55
  67.   mov   ecx,[esp+4]
  68.   int   0x40
  69.   mov   ebx,edx
  70.   ret   4