aboutsummaryrefslogtreecommitdiff
path: root/src/adldata.hh
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-04 17:01:15 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-04 17:01:15 +0300
commitf4736ec6e66824931fd36edfad60670f56c78146 (patch)
tree669d154b1bb134f47d99054bc264b357381f793f /src/adldata.hh
parent78d7d51ad562bd8040cba46ab0471bc5034fcf4e (diff)
downloadlibADLMIDI-f4736ec6e66824931fd36edfad60670f56c78146.tar.gz
libADLMIDI-f4736ec6e66824931fd36edfad60670f56c78146.tar.bz2
libADLMIDI-f4736ec6e66824931fd36edfad60670f56c78146.zip
Added default states for deep tremolo/vibrato and volume moduels
TODO: Implement support for tri-states per deep-tremolo, deep-vibrato flags
Diffstat (limited to 'src/adldata.hh')
-rw-r--r--src/adldata.hh24
1 files changed, 11 insertions, 13 deletions
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 <http://www.gnu.org/licenses/>.
*/
-#ifdef ADLMIDI_buildAsApp
-#include <SDL2/SDL.h>
-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[];