Rev 359 | Rev 374 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 359 | Rev 368 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #define SOUND_VERSION 5 |
9 | #define SOUND_VERSION 5 |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | #define PCM_ALL 0 |
11 | #define PCM_ALL 0 |
- | 12 | #define PCM_STATIC 0x80000000 |
|
- | 13 | #define PCM_FILTER 0x40000000 |
|
- | 14 | #define PCM_FLOAT 0x20000000 |
|
12 | #define PCM_STATIC 0x80000000 |
15 | |
13 | #define PCM_2_16_48 1 |
16 | #define PCM_2_16_48 1 |
14 | #define PCM_1_16_48 2 |
17 | #define PCM_1_16_48 2 |
15 | #define PCM_2_16_44 3 |
18 | #define PCM_2_16_44 3 |
16 | #define PCM_1_16_44 4 |
19 | #define PCM_1_16_44 4 |
Line 66... | Line 69... | ||
66 | SNDBUF _stdcall CreateBuffer(unsigned int format,int size); |
69 | SNDBUF _stdcall CreateBuffer(unsigned int format,int size); |
67 | int _stdcall DestroyBuffer(SNDBUF hBuff); |
70 | int _stdcall DestroyBuffer(SNDBUF hBuff); |
68 | int _stdcall SetBuffer(SNDBUF hBuff,void* buff, |
71 | int _stdcall SetBuffer(SNDBUF hBuff,void* buff, |
69 | int offs, int size); |
72 | int offs, int size); |
70 | int _stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
73 | int _stdcall SetFormat(SNDBUF hBuff, unsigned int format); |
- | 74 | int _stdcall ResetBuffer(SNDBUF hBuff, unsigned int flags); |
|
- | 75 | int _stdcall SetBufferPos(SNDBUF hBuff, int offset); |
|
- | 76 | int _stdcall SetVolume(SNDBUF hBuff, int left, int right); |
|
- | 77 | int _stdcall GetVolume(SNDBUF hBuff, int *left, int *right); |
|
- | 78 | int _stdcall SetPan(SNDBUF hBuff, int pan); |
|
- | 79 | ||
- | 80 | int _stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
|
71 | 81 | ||
Line 72... | Line 82... | ||
72 | int _stdcall PlayBuffer(SNDBUF hBuff); |
82 | int _stdcall PlayBuffer(SNDBUF hBuff); |
73 | int _stdcall StopBuffer(SNDBUF hBuff); |
83 | int _stdcall StopBuffer(SNDBUF hBuff); |
Line -... | Line 84... | ||
- | 84 | ||
- | 85 | typedef struct |
|
- | 86 | { unsigned int riff_id; |
|
- | 87 | unsigned int riff_size; |
|
- | 88 | unsigned int riff_format; |
|
- | 89 | ||
- | 90 | unsigned int fmt_id; |
|
- | 91 | unsigned int fmt_size; |
|
- | 92 | ||
- | 93 | unsigned short int wFormatTag; |
|
- | 94 | unsigned short int nChannels; |
|
- | 95 | unsigned int nSamplesPerSec; |
|
- | 96 | unsigned int nAvgBytesPerSec; |
|
74 | 97 | unsigned short int nBlockAlign; |
|
- | 98 | unsigned short int wBitsPerSample; |
|
- | 99 | unsigned int data_id; |
|
- | 100 | unsigned int data_size; |
|
- | 101 | } WAVEHEADER; |
|
75 | int _stdcall GetMasterVol(int* vol); |
102 | |
Line 76... | Line 103... | ||
76 | int _stdcall SetMasterVol(int vol); |
103 | unsigned int _stdcall test_wav(WAVEHEADER *hdr); |
77 | 104 | ||
78 | #ifdef __cplusplus |
105 | #ifdef __cplusplus |
79 | extern "C" |
106 | extern "C" |