Skip to content

Commit

Permalink
spunull: Add missing callback and fix prototypes
Browse files Browse the repository at this point in the history
- 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 <paul@crapouillou.net>
  • Loading branch information
pcercuei authored and notaz committed May 30, 2024
1 parent 49f5a27 commit eedbe27
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions plugins/spunull/spunull.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
{
}

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -542,3 +542,7 @@ void CALLBACK SPUstopChannels2(unsigned short channels)
{
//SoundOff(16,24,channels);
}

void CALLBACK SPUregisterScheduleCb(void (CALLBACK *callback)(unsigned int))
{
}

0 comments on commit eedbe27

Please sign in to comment.