diff --git a/src/audio/mockingboard.c b/src/audio/mockingboard.c index 5c7cae91..f5429af2 100644 --- a/src/audio/mockingboard.c +++ b/src/audio/mockingboard.c @@ -1757,6 +1757,10 @@ void MB_Destroy() } } +bool MB_ISEnabled(void) { + return (MockingboardVoice != NULL); +} + //----------------------------------------------------------------------------- static void ResetState() diff --git a/src/audio/mockingboard.h b/src/audio/mockingboard.h index 042b582f..3a810287 100644 --- a/src/audio/mockingboard.h +++ b/src/audio/mockingboard.h @@ -98,6 +98,7 @@ extern uint32_t g_uTimer1IrqCount; // DEBUG void MB_Initialize(); void MB_Reinitialize(); void MB_Destroy(); +bool MB_ISEnabled(void); void MB_Reset(); void MB_InitializeIO(char *pCxRomPeripheral, unsigned int uSlot4, unsigned int uSlot5); void MB_Mute();