diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/adlmidi_opl3.cpp | 9 | ||||
-rw-r--r-- | src/adlmidi_private.hpp | 21 |
2 files changed, 26 insertions, 4 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index bad9cf3..94602ba 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -46,12 +46,13 @@ static const unsigned OPLBase = 0x388; static const unsigned adl_emulatorSupport = 0 #ifndef ADLMIDI_HW_OPL -#ifndef ADLMIDI_DISABLE_NUKED_EMULATOR +# ifndef ADLMIDI_DISABLE_NUKED_EMULATOR | (1u << ADLMIDI_EMU_NUKED) | (1u << ADLMIDI_EMU_NUKED_174) -#endif -#ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR +# endif + +# ifndef ADLMIDI_DISABLE_DOSBOX_EMULATOR | (1u << ADLMIDI_EMU_DOSBOX) -#endif +# endif #endif ; diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp index 0219c67..6bb1dcf 100644 --- a/src/adlmidi_private.hpp +++ b/src/adlmidi_private.hpp @@ -1470,10 +1470,31 @@ struct FourChars #if defined(ADLMIDI_AUDIO_TICK_HANDLER) extern void adl_audioTickHandler(void *instance, uint32_t chipId, uint32_t rate); #endif + +/** + * @brief Automatically calculate and enable necessary count of 4-op channels on emulated chips + * @param device Library context + * @return Always 0 + */ extern int adlRefreshNumCards(ADL_MIDIPlayer *device); +/** + * @brief Check emulator availability + * @param emulator Emulator ID (ADL_Emulator) + * @return true when emulator is available + */ extern bool adl_isEmulatorAvailable(int emulator); + +/** + * @brief Find highest emulator + * @return The ADL_Emulator enum value which contains ID of highest emulator + */ extern int adl_getHighestEmulator(); + +/** + * @brief Find lowerest emulator + * @return The ADL_Emulator enum value which contains ID of lowerest emulator + */ extern int adl_getLowestEmulator(); #endif // ADLMIDI_PRIVATE_HPP |