standalone: allow scaler to cut off the letterbox
[pcsx_rearmed.git] / plugins / dfsound / spu.h
CommitLineData
ef79bbde
P
1/***************************************************************************\r
2 spu.h - description\r
3 -------------------\r
4 begin : Wed May 15 2002\r
5 copyright : (C) 2002 by Pete Bernert\r
6 email : BlackDove@addcom.de\r
7 ***************************************************************************/\r
8/***************************************************************************\r
9 * *\r
10 * This program is free software; you can redistribute it and/or modify *\r
11 * it under the terms of the GNU General Public License as published by *\r
12 * the Free Software Foundation; either version 2 of the License, or *\r
13 * (at your option) any later version. See also the license.txt file for *\r
14 * additional informations. *\r
15 * *\r
16 ***************************************************************************/\r
17\r
908e426c 18#ifndef __P_SPU_H__\r
19#define __P_SPU_H__\r
20\r
740eb9bc 21struct SPUFreeze;\r
22struct xa_decode;\r
b71a957f 23\r
740eb9bc 24long CALLBACK SPUopen(void);\r
25long CALLBACK SPUinit(void);\r
26long CALLBACK SPUshutdown(void);\r
27long CALLBACK SPUclose(void);\r
28void CALLBACK SPUwriteRegister(unsigned long, unsigned short, unsigned int);\r
29unsigned short CALLBACK SPUreadRegister(unsigned long, unsigned int);\r
30void CALLBACK SPUregisterCallback(void (*cb)(int));\r
31void CALLBACK SPUregisterScheduleCb(void (*cb)(unsigned int));\r
32long CALLBACK SPUfreeze(unsigned int, struct SPUFreeze *, unsigned int);\r
33void CALLBACK SPUasync(unsigned int, unsigned int);\r
34\r
35void CALLBACK SPUreadDMAMem(unsigned short * pusPSXMem,int iSize,unsigned int cycles);\r
36void CALLBACK SPUwriteDMAMem(unsigned short * pusPSXMem,int iSize,unsigned int cycles);\r
37\r
38void CALLBACK SPUplayADPCMchannel(struct xa_decode *xap, unsigned int cycle, int is_start);\r
cdaef86c 39int CALLBACK SPUplayCDDAchannel(short *pcm, int bytes, unsigned int cycle, int is_start);\r
740eb9bc 40void CALLBACK SPUsetCDvol(unsigned char ll, unsigned char lr,\r
41 unsigned char rl, unsigned char rr, unsigned int cycle);\r
42\r
43// internal\r
44void ClearWorkingState(void);\r
908e426c 45\r
46#endif /* __P_SPU_H__ */\r