From 5291ee750df7ce0ca93a7245d1df2b8636f6108c Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Thu, 23 Jul 2015 23:46:23 -0700 Subject: [PATCH] Add MB_ISEnabled() function --- src/audio/mockingboard.c | 4 ++++ src/audio/mockingboard.h | 1 + 2 files changed, 5 insertions(+) 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();