From eedbe278db2e34a61c7beef4692e211facb595a5 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Thu, 30 May 2024 11:54:55 +0200 Subject: [PATCH] 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 --- plugins/spunull/spunull.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)) +{ +} -- 2.39.2