From a7bce836516392c06bd552f6a7316717df29f7c4 Mon Sep 17 00:00:00 2001 From: gecko_reverse Date: Sun, 21 Sep 2008 07:36:57 +0000 Subject: [PATCH] added a function to retrieve the current spu interface --- desmume/src/SPU.cpp | 5 +++++ desmume/src/SPU.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index a89f44ca5..2976e51dd 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -129,6 +129,11 @@ int SPU_ChangeSoundCore(int coreid, int buffersize) return 0; } +SoundInterface_struct *SPU_SoundCore() +{ + return SNDCore; +} + ////////////////////////////////////////////////////////////////////////////// int SPU_Init(int coreid, int buffersize) diff --git a/desmume/src/SPU.h b/desmume/src/SPU.h index 0cb6da6e4..e984507ba 100644 --- a/desmume/src/SPU.h +++ b/desmume/src/SPU.h @@ -79,6 +79,8 @@ typedef struct extern SPU_struct *SPU; int SPU_ChangeSoundCore(int coreid, int buffersize); +SoundInterface_struct *SPU_SoundCore(); + int SPU_Init(int coreid, int buffersize); void SPU_Pause(int pause); void SPU_SetVolume(int volume);