Lines 126-134
Link Here
|
126 |
int SB[32+32]; // Pete added another 32 dwords in 1.6 ... prevents overflow issues with gaussian/cubic interpolation (thanx xodnizel!), and can be used for even better interpolations, eh? :) |
126 |
int SB[32+32]; // Pete added another 32 dwords in 1.6 ... prevents overflow issues with gaussian/cubic interpolation (thanx xodnizel!), and can be used for even better interpolations, eh? :) |
127 |
int sval; |
127 |
int sval; |
128 |
|
128 |
|
129 |
unsigned char * pStart; // start ptr into sound mem |
129 |
u8 * pStart; // start ptr into sound mem |
130 |
unsigned char * pCurr; // current pos in sound mem |
130 |
u8 * pCurr; // current pos in sound mem |
131 |
unsigned char * pLoop; // loop ptr in sound mem |
131 |
u8 * pLoop; // loop ptr in sound mem |
132 |
|
132 |
|
133 |
int bOn; // is channel active (sample playing?) |
133 |
int bOn; // is channel active (sample playing?) |
134 |
int bStop; // is channel stopped (sample _can_ still be playing, ADSR Release phase) |
134 |
int bStop; // is channel stopped (sample _can_ still be playing, ADSR Release phase) |
Lines 206-216
Link Here
|
206 |
int IN_COEF_R; // (coef.) |
206 |
int IN_COEF_R; // (coef.) |
207 |
} REVERBInfo; |
207 |
} REVERBInfo; |
208 |
|
208 |
|
209 |
#ifdef _WINDOWS |
|
|
210 |
extern HINSTANCE hInst; |
211 |
#define WM_MUTE (WM_USER+543) |
212 |
#endif |
213 |
|
214 |
/////////////////////////////////////////////////////////// |
209 |
/////////////////////////////////////////////////////////// |
215 |
// SPU.C globals |
210 |
// SPU.C globals |
216 |
/////////////////////////////////////////////////////////// |
211 |
/////////////////////////////////////////////////////////// |
Lines 219-229
Link Here
|
219 |
|
214 |
|
220 |
// psx buffers / addresses |
215 |
// psx buffers / addresses |
221 |
|
216 |
|
222 |
extern unsigned short regArea[]; |
217 |
extern u16 regArea[]; |
223 |
extern unsigned short spuMem[]; |
218 |
extern u16 spuMem[]; |
224 |
extern unsigned char * spuMemC; |
219 |
extern u8 * spuMemC; |
225 |
extern unsigned char * pSpuIrq; |
220 |
extern u8 * pSpuIrq; |
226 |
extern unsigned char * pSpuBuffer; |
221 |
extern u8 * pSpuBuffer; |
227 |
|
222 |
|
228 |
// user settings |
223 |
// user settings |
229 |
|
224 |
|
Lines 244-269
Link Here
|
244 |
extern SPUCHAN s_chan[]; |
239 |
extern SPUCHAN s_chan[]; |
245 |
extern REVERBInfo rvb; |
240 |
extern REVERBInfo rvb; |
246 |
|
241 |
|
247 |
extern unsigned long dwNoiseVal; |
242 |
extern u32 dwNoiseVal; |
248 |
extern unsigned short spuCtrl; |
243 |
extern u16 spuCtrl; |
249 |
extern unsigned short spuStat; |
244 |
extern u16 spuStat; |
250 |
extern unsigned short spuIrq; |
245 |
extern u16 spuIrq; |
251 |
extern unsigned long spuAddr; |
246 |
extern u32 spuAddr; |
252 |
extern int bEndThread; |
247 |
extern int bEndThread; |
253 |
extern int bThreadEnded; |
248 |
extern int bThreadEnded; |
254 |
extern int bSpuInit; |
249 |
extern int bSpuInit; |
255 |
extern unsigned long dwNewChannel; |
250 |
extern u32 dwNewChannel; |
256 |
|
251 |
|
257 |
extern int SSumR[]; |
252 |
extern int SSumR[]; |
258 |
extern int SSumL[]; |
253 |
extern int SSumL[]; |
259 |
extern int iCycle; |
254 |
extern int iCycle; |
260 |
extern short * pS; |
255 |
extern short * pS; |
261 |
|
256 |
|
262 |
#ifdef _WINDOWS |
|
|
263 |
extern HWND hWMain; // window handle |
264 |
extern HWND hWDebug; |
265 |
#endif |
266 |
|
267 |
extern void (CALLBACK *cddavCallback)(unsigned short,unsigned short); |
257 |
extern void (CALLBACK *cddavCallback)(unsigned short,unsigned short); |
268 |
|
258 |
|
269 |
#endif |
259 |
#endif |
Lines 274-282
Link Here
|
274 |
|
264 |
|
275 |
#ifndef _IN_CFG |
265 |
#ifndef _IN_CFG |
276 |
|
266 |
|
277 |
#ifndef _WINDOWS |
|
|
278 |
extern char * pConfigFile; |
267 |
extern char * pConfigFile; |
279 |
#endif |
|
|
280 |
|
268 |
|
281 |
#endif |
269 |
#endif |
282 |
|
270 |
|
Lines 286-296
Link Here
|
286 |
|
274 |
|
287 |
#ifndef _IN_DSOUND |
275 |
#ifndef _IN_DSOUND |
288 |
|
276 |
|
289 |
#ifdef _WINDOWS |
|
|
290 |
extern unsigned long LastWrite; |
291 |
extern unsigned long LastPlay; |
292 |
#endif |
293 |
|
294 |
#endif |
277 |
#endif |
295 |
|
278 |
|
296 |
/////////////////////////////////////////////////////////// |
279 |
/////////////////////////////////////////////////////////// |
Lines 299-308
Link Here
|
299 |
|
282 |
|
300 |
#ifndef _IN_RECORD |
283 |
#ifndef _IN_RECORD |
301 |
|
284 |
|
302 |
#ifdef _WINDOWS |
|
|
303 |
extern int iDoRecord; |
304 |
#endif |
305 |
|
306 |
#endif |
285 |
#endif |
307 |
|
286 |
|
308 |
/////////////////////////////////////////////////////////// |
287 |
/////////////////////////////////////////////////////////// |
Lines 313-325
Link Here
|
313 |
|
292 |
|
314 |
extern xa_decode_t * xapGlobal; |
293 |
extern xa_decode_t * xapGlobal; |
315 |
|
294 |
|
316 |
extern uint32_t * XAFeed; |
295 |
extern u32 * XAFeed; |
317 |
extern uint32_t * XAPlay; |
296 |
extern u32 * XAPlay; |
318 |
extern uint32_t * XAStart; |
297 |
extern u32 * XAStart; |
319 |
extern uint32_t * XAEnd; |
298 |
extern u32 * XAEnd; |
320 |
|
299 |
|
321 |
extern uint32_t XARepeat; |
300 |
extern u32 XARepeat; |
322 |
extern uint32_t XALastVal; |
301 |
extern u32 XALastVal; |
323 |
|
302 |
|
324 |
extern int iLeftXAVol; |
303 |
extern int iLeftXAVol; |
325 |
extern int iRightXAVol; |
304 |
extern int iRightXAVol; |