From: Paul Cercueil Date: Thu, 30 May 2024 09:54:55 +0000 (+0200) Subject: spunull: Add missing callback and fix prototypes X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90edeafdb5d3ae77709deaf54360a7d61a22b1c2;p=pcsx_rearmed.git spunull: Add missing callback and fix prototypes - Add SPUregisterScheduleCb() which was missing - Fix prototypes of some functions, which did not have the right number of parameters. This caused warnings at the linking phase when building PCSX with LTO. Signed-off-by: Paul Cercueil --- diff --git a/plugins/spunull/spunull.c b/plugins/spunull/spunull.c index 7f16ed5e..38cd44b5 100644 --- a/plugins/spunull/spunull.c +++ b/plugins/spunull/spunull.c @@ -182,7 +182,7 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val, unsigned i //////////////////////////////////////////////////////////////////////// -unsigned short CALLBACK SPUreadRegister(unsigned long reg) +unsigned short CALLBACK SPUreadRegister(unsigned long reg, unsigned int cycles) { unsigned long r=reg&0xfff; @@ -280,7 +280,7 @@ void CALLBACK SPUreadDMAMem(unsigned short * pusPSXMem,int iSize,unsigned int cy // XA AUDIO //////////////////////////////////////////////////////////////////////// -void CALLBACK SPUplayADPCMchannel(xa_decode_t *xap) +void CALLBACK SPUplayADPCMchannel(xa_decode_t *xap, unsigned int cycles, int is_start) { } @@ -352,7 +352,7 @@ void SPUasync(unsigned int cycle, unsigned int flags) { } -int SPUplayCDDAchannel(short *pcm, int nbytes) +int SPUplayCDDAchannel(short *pcm, int nbytes, unsigned int cycle, int is_start) { return -1; } @@ -542,3 +542,7 @@ void CALLBACK SPUstopChannels2(unsigned short channels) { //SoundOff(16,24,channels); } + +void CALLBACK SPUregisterScheduleCb(void (CALLBACK *callback)(unsigned int)) +{ +}