Subversion Repositories Kolibri OS

Rev

Rev 368 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. #ifndef _SOUND_H_
  3. #define _SOUND_H_
  4.  
  5. #ifdef __cplusplus
  6. extern "C"
  7. {
  8. #endif
  9.  
  10. #define SOUND_VERSION  5
  11.  
  12. #define PCM_ALL       0
  13. #define PCM_STATIC    0x80000000
  14. #define PCM_2_16_48   1
  15. #define PCM_1_16_48   2
  16. #define PCM_2_16_44   3
  17. #define PCM_1_16_44   4
  18. #define PCM_2_16_32   5
  19. #define PCM_1_16_32   6
  20. #define PCM_2_16_24   7
  21. #define PCM_1_16_24   8
  22. #define PCM_2_16_22   9
  23. #define PCM_1_16_22  10
  24. #define PCM_2_16_16  11
  25. #define PCM_1_16_16  12
  26. #define PCM_2_16_12  13
  27. #define PCM_1_16_12  14
  28. #define PCM_2_16_11  15
  29. #define PCM_1_16_11  16
  30. #define PCM_2_16_8   17
  31. #define PCM_1_16_8   18
  32. #define PCM_2_8_48   19
  33. #define PCM_1_8_48   20
  34. #define PCM_2_8_44   21
  35. #define PCM_1_8_44   22
  36. #define PCM_2_8_32   23
  37. #define PCM_1_8_32   24
  38. #define PCM_2_8_24   25
  39. #define PCM_1_8_24   26
  40. #define PCM_2_8_22   27
  41. #define PCM_1_8_22   28
  42. #define PCM_2_8_16   29
  43. #define PCM_1_8_16   30
  44. #define PCM_2_8_12   31
  45. #define PCM_1_8_12   32
  46. #define PCM_2_8_11   33
  47. #define PCM_1_8_11   34
  48. #define PCM_2_8_8    35
  49. #define PCM_1_8_8    36
  50.  
  51. #define SRV_GETVERSION      0
  52. #define SND_CREATE_BUFF     1
  53. #define SND_DESTROY_BUFF    2
  54. #define SND_SETFORMAT       3
  55. #define SND_RESET           4
  56. #define SND_SETPOS          5
  57. #define SND_SETBUFF         6
  58. #define SND_SETVOLUME       7
  59. #define SND_GETVOLUME       8
  60. #define SND_OUT             9
  61. #define SND_PLAY            10
  62. #define SND_STOP            11
  63.  
  64. typedef unsigned int SNDBUF;
  65.  
  66. int _stdcall  InitSound();
  67. SNDBUF _stdcall  CreateBuffer(unsigned int format,int size);
  68. int _stdcall  DestroyBuffer(SNDBUF hBuff);
  69. int _stdcall  SetBuffer(SNDBUF hBuff,void* buff,
  70.                         int offs, int size);
  71. int _stdcall  WaveOut(SNDBUF hBuff,void *buff, int size);
  72.                                
  73. int _stdcall  PlayBuffer(SNDBUF hBuff);
  74. int _stdcall  StopBuffer(SNDBUF hBuff);
  75.  
  76. int _stdcall  GetMasterVol(int* vol);
  77. int _stdcall  SetMasterVol(int vol);
  78.  
  79. #ifdef __cplusplus
  80. extern "C"
  81. }
  82. #endif
  83.  
  84. #endif //_SOUND_H_