Rev 374 | 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); |