Rev 374 | Rev 550 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 374 | Rev 376 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | #define PLAY_SYNC 0x80000000 |
74 | #define PLAY_SYNC 0x80000000 |
Line 75... | Line 75... | ||
75 | 75 | ||
Line 76... | Line 76... | ||
76 | typedef unsigned int SNDBUF; |
76 | typedef unsigned int SNDBUF; |
Line 77... | Line 77... | ||
77 | 77 | ||
78 | int _stdcall InitSound(); |
78 | int _stdcall InitSound(int *version); |
Line 79... | Line 79... | ||
79 | 79 | ||
80 | SNDBUF _stdcall CreateBuffer(unsigned int format,int size); |
80 | int _stdcall CreateBuffer(unsigned int format,int size,SNDBUF *buf); |
Line 81... | Line 81... | ||
81 | int _stdcall DestroyBuffer(SNDBUF hBuff); |
81 | int _stdcall DestroyBuffer(SNDBUF hBuff); |
82 | 82 | ||
83 | int _stdcall SetFormat(SNDBUF hBuff, unsigned int format); |
83 | int _stdcall SetFormat(SNDBUF hBuff, unsigned int format); |
84 | int _stdcall GetFormat(SNDBUF hBuff); |
84 | int _stdcall GetFormat(SNDBUF hBuff, unsigned int *format); |
Line 85... | Line 85... | ||
85 | 85 | ||
86 | int _stdcall ResetBuffer(SNDBUF hBuff, unsigned int flags); |
86 | int _stdcall ResetBuffer(SNDBUF hBuff, unsigned int flags); |
87 | int _stdcall SetBufferPos(SNDBUF hBuff, int offset); |
87 | int _stdcall SetBufferPos(SNDBUF hBuff, int offset); |
88 | int _stdcall GetBufferPos(SNDBUF hBuff); |
88 | int _stdcall GetBufferPos(SNDBUF hBuff, int *offset); |
89 | int _stdcall GetBufferSize(SNDBUF hBuff); |
89 | int _stdcall GetBufferSize(SNDBUF hBuff, int *size); |
Line 90... | Line 90... | ||
90 | 90 | ||
91 | int _stdcall SetBuffer(SNDBUF hBuff,void* buff, |
91 | int _stdcall SetBuffer(SNDBUF hBuff,void* buff, |
92 | int offs, int size); |
92 | int offs, int size); |
93 | int _stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
93 | int _stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
Line 94... | Line 94... | ||
94 | int _stdcall PlayBuffer(SNDBUF hBuff,unsigned int flags); |
94 | int _stdcall PlayBuffer(SNDBUF hBuff,unsigned int flags); |
95 | int _stdcall StopBuffer(SNDBUF hBuff); |
95 | int _stdcall StopBuffer(SNDBUF hBuff); |
Line -... | Line 96... | ||
- | 96 | ||
- | 97 | int _stdcall SetVolume(SNDBUF hBuff, int left, int right); |
|
- | 98 | int _stdcall GetVolume(SNDBUF hBuff, int *left, int *right); |
|
- | 99 | int _stdcall SetPan(SNDBUF hBuff, int pan); |
|
- | 100 | int _stdcall GetPan(SNDBUF hBuff, int *pan); |
|
- | 101 | ||
- | 102 | int _stdcall GetMasterVol(int* vol); |
|
- | 103 | int _stdcall SetMasterVol(int vol); |
|
- | 104 | ||
- | 105 | ||
- | 106 | typedef struct |
|
- | 107 | { |
|
- | 108 | unsigned int riff_id; |
|
- | 109 | unsigned int riff_size; |
|
- | 110 | unsigned int riff_format; |
|
- | 111 | ||
- | 112 | unsigned int fmt_id; |
|
- | 113 | unsigned int fmt_size; |
|
- | 114 | ||
- | 115 | unsigned short int wFormatTag; |
|
- | 116 | unsigned short int nChannels; |
|
96 | 117 | unsigned int nSamplesPerSec; |
|
Line 97... | Line 118... | ||
97 | int _stdcall SetVolume(SNDBUF hBuff, int left, int right); |
118 | unsigned int nAvgBytesPerSec; |
98 | int _stdcall GetVolume(SNDBUF hBuff, int *left, int *right); |
119 | unsigned short int nBlockAlign; |
99 | int _stdcall SetPan(SNDBUF hBuff, int pan); |
120 | unsigned short int wBitsPerSample; |