From f4736ec6e66824931fd36edfad60670f56c78146 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 4 Nov 2017 17:01:15 +0300 Subject: Added default states for deep tremolo/vibrato and volume moduels TODO: Implement support for tri-states per deep-tremolo, deep-vibrato flags --- src/adldata.hh | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'src/adldata.hh') diff --git a/src/adldata.hh b/src/adldata.hh index d139d55..3a43a12 100644 --- a/src/adldata.hh +++ b/src/adldata.hh @@ -21,19 +21,6 @@ * along with this program. If not, see . */ -#ifdef ADLMIDI_buildAsApp -#include -class MutexType -{ - SDL_mutex* mut; -public: - MutexType() : mut(SDL_CreateMutex()) { } - ~MutexType() { SDL_DestroyMutex(mut); } - void Lock() { SDL_mutexP(mut); } - void Unlock() { SDL_mutexV(mut); } -}; -#endif - extern const struct adldata { unsigned int modulator_E862, carrier_E862; // See below @@ -58,3 +45,14 @@ int maxAdlBanks(); extern const unsigned short banks[][256]; extern const char* const banknames[]; +/** + * @brief Bank global setup + */ +extern const struct AdlBankSetup +{ + int volumeModel; + bool deepTremolo; + bool deepVibrato; + bool adLibPercussions; + bool scaleModulators; +} adlbanksetup[]; -- cgit v1.2.3