Rev 5136 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5136 | Rev 6109 | ||
---|---|---|---|
Line 78... | Line 78... | ||
78 | #define PLAY_SYNC 0x80000000 |
78 | #define PLAY_SYNC 0x80000000 |
Line 79... | Line 79... | ||
79 | 79 | ||
Line 80... | Line 80... | ||
80 | typedef unsigned int SNDBUF; |
80 | typedef unsigned int SNDBUF; |
Line 81... | Line 81... | ||
81 | 81 | ||
82 | int _stdcall InitSound(int *version); |
82 | int __stdcall InitSound(int *version); |
Line 83... | Line 83... | ||
83 | 83 | ||
84 | int _stdcall CreateBuffer(unsigned int format,int size,SNDBUF *buf); |
84 | int __stdcall CreateBuffer(unsigned int format,int size,SNDBUF *buf); |
Line 85... | Line 85... | ||
85 | int _stdcall DestroyBuffer(SNDBUF hBuff); |
85 | int __stdcall DestroyBuffer(SNDBUF hBuff); |
86 | 86 | ||
87 | int _stdcall SetFormat(SNDBUF hBuff, unsigned int format); |
87 | int __stdcall SetFormat(SNDBUF hBuff, unsigned int format); |
88 | int _stdcall GetFormat(SNDBUF hBuff, unsigned int *format); |
88 | int __stdcall GetFormat(SNDBUF hBuff, unsigned int *format); |
89 | 89 | ||
Line 90... | Line 90... | ||
90 | int _stdcall ResetBuffer(SNDBUF hBuff, unsigned int flags); |
90 | int __stdcall ResetBuffer(SNDBUF hBuff, unsigned int flags); |
91 | int _stdcall SetBufferPos(SNDBUF hBuff, int offset); |
91 | int __stdcall SetBufferPos(SNDBUF hBuff, int offset); |
92 | int _stdcall GetBufferPos(SNDBUF hBuff, int *offset); |
92 | int __stdcall GetBufferPos(SNDBUF hBuff, int *offset); |
93 | int _stdcall GetBufferSize(SNDBUF hBuff, int *size); |
93 | int __stdcall GetBufferSize(SNDBUF hBuff, int *size); |
94 | int _stdcall GetBufferFree(SNDBUF hBuff, int *free); |
94 | int __stdcall GetBufferFree(SNDBUF hBuff, int *free); |
95 | 95 | ||
96 | int _stdcall SetBuffer(SNDBUF hBuff,void* buff, |
96 | int __stdcall SetBuffer(SNDBUF hBuff,void* buff, |
97 | int offs, int size); |
97 | int offs, int size); |
98 | int _stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
98 | int __stdcall WaveOut(SNDBUF hBuff,void *buff, int size); |
99 | int _stdcall PlayBuffer(SNDBUF hBuff,unsigned int flags); |
99 | int __stdcall PlayBuffer(SNDBUF hBuff,unsigned int flags); |
100 | int _stdcall StopBuffer(SNDBUF hBuff); |
100 | int __stdcall StopBuffer(SNDBUF hBuff); |
101 | 101 | ||
102 | int _stdcall SetVolume(SNDBUF hBuff, int left, int right); |
102 | int __stdcall SetVolume(SNDBUF hBuff, int left, int right); |
103 | int _stdcall GetVolume(SNDBUF hBuff, int *left, int *right); |
103 | int __stdcall GetVolume(SNDBUF hBuff, int *left, int *right); |
104 | int _stdcall SetPan(SNDBUF hBuff, int pan); |
104 | int __stdcall SetPan(SNDBUF hBuff, int pan); |
105 | int _stdcall GetPan(SNDBUF hBuff, int *pan); |
105 | int __stdcall GetPan(SNDBUF hBuff, int *pan); |
106 | 106 | ||
Line 107... | Line 107... | ||
107 | int _stdcall GetMasterVol(int* vol); |
107 | int __stdcall GetMasterVol(int* vol); |
108 | int _stdcall SetMasterVol(int vol); |
108 | int __stdcall SetMasterVol(int vol); |
109 | 109 | ||
Line 131... | Line 131... | ||
131 | unsigned int data_size; |
131 | unsigned int data_size; |
132 | } WAVEHEADER; |
132 | } WAVEHEADER; |
133 | 133 | ||
Line 134... | Line 134... | ||
134 | 134 | ||
Line 135... | Line 135... | ||
135 | unsigned int _stdcall test_wav(WAVEHEADER *hdr); |
135 | unsigned int __stdcall test_wav(WAVEHEADER *hdr); |
136 | 136 | ||
137 | #ifdef __cplusplus |
137 | #ifdef __cplusplus |