Skip to content

Commit

Permalink
GamecubePlugins: wire up SPUsetCDvol() callback
Browse files Browse the repository at this point in the history
Wire dfsound's SPUsetCDvol() so that it can be called by libpcsxcore.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Jan 14, 2024
1 parent 536aceb commit 5d46c7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gamecube/GamecubePlugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ void CALLBACK SPUwriteRegister(unsigned long reg, unsigned short val, unsigned i
long CALLBACK SPUopen(void);
long CALLBACK SPUclose(void);
long CALLBACK SPUfreeze(uint32_t ulFreezeMode, void * pF, uint32_t cycles);
void CALLBACK SPUsetCDvol(unsigned char ll, unsigned char lr,
unsigned char rl, unsigned char rr, unsigned int cycle);


#define EMPTY_PLUGIN \
{ NULL, \
Expand Down Expand Up @@ -150,6 +153,8 @@ long CALLBACK SPUfreeze(uint32_t ulFreezeMode, void * pF, uint32_t cycles);
(void*)SPUplayADPCMchannel}, \
{ "SPUfreeze", \
(void*)SPUfreeze}, \
{ "SPUsetCDvol", \
(void*)SPUsetCDvol}, \
{ "SPUregisterCallback", \
(void*)SPUregisterCallback}, \
{ "SPUregisterCDDAVolume", \
Expand Down

0 comments on commit 5d46c7a

Please sign in to comment.