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