X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfsound%2Fspu.h;h=334c680996ff9c9c929a4cc564a15250fe87399b;hb=a4621d435f84acf094a6601c3a444cc550f82929;hp=048f6434c689ef794a3f88155bcbb682803aa0ab;hpb=983a7cfdccceaa612267a1b045110b4f831d1495;p=pcsx_rearmed.git diff --git a/plugins/dfsound/spu.h b/plugins/dfsound/spu.h index 048f6434..334c6809 100644 --- a/plugins/dfsound/spu.h +++ b/plugins/dfsound/spu.h @@ -15,7 +15,19 @@ * * ***************************************************************************/ -void SetupTimer(void); -void RemoveTimer(void); -void CALLBACK SPUplayADPCMchannel(xa_decode_t *xap); -int CALLBACK SPUplayCDDAchannel(short *pcm, int bytes); +#ifndef __P_SPU_H__ +#define __P_SPU_H__ + +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#define HTOLE16(x) __builtin_bswap16(x) +#define LE16TOH(x) __builtin_bswap16(x) +#else +#define HTOLE16(x) (x) +#define LE16TOH(x) (x) +#endif + +void ClearWorkingState(void); +void CALLBACK SPUplayADPCMchannel(xa_decode_t *xap, unsigned int cycle, int is_start); +int CALLBACK SPUplayCDDAchannel(short *pcm, int bytes, unsigned int cycle, int is_start); + +#endif /* __P_SPU_H__ */