aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_db.h
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-08-19 02:11:01 +0300
committerWohlstand <admin@wohlnet.ru>2020-08-19 02:11:01 +0300
commit2ba770631ff1dc978d16a874a4ab99930ce12d2d (patch)
treeecf1195966681e24892ecba6b77c067ce24e7dbd /src/adlmidi_db.h
parent6d4dc0b87bf3a27f0510b63279b17b457821c38c (diff)
downloadlibADLMIDI-2ba770631ff1dc978d16a874a4ab99930ce12d2d.tar.gz
libADLMIDI-2ba770631ff1dc978d16a874a4ab99930ce12d2d.tar.bz2
libADLMIDI-2ba770631ff1dc978d16a874a4ab99930ce12d2d.zip
Use new banks database format
However, it's stil need to clean-up and fix gen_adldata for a correct work!
Diffstat (limited to 'src/adlmidi_db.h')
-rw-r--r--src/adlmidi_db.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/adlmidi_db.h b/src/adlmidi_db.h
index 9f16b60..a560e9c 100644
--- a/src/adlmidi_db.h
+++ b/src/adlmidi_db.h
@@ -1,3 +1,32 @@
+/*
+ * libADLMIDI is a free Software MIDI synthesizer library with OPL3 emulation
+ *
+ * Original ADLMIDI code: Copyright (c) 2010-2014 Joel Yliluoma <bisqwit@iki.fi>
+ * ADLMIDI Library API: Copyright (c) 2015-2020 Vitaly Novichkov <admin@wohlnet.ru>
+ *
+ * Library is based on the ADLMIDI, a MIDI player for Linux and Windows with OPL3 emulation:
+ * http://iki.fi/bisqwit/source/adlmidi.html
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef ADLDATA_DB_H
+#define ADLDATA_DB_H
+
+#pragma once
+
#include <stdint.h>
#include <stddef.h>
#include <vector>
@@ -10,7 +39,9 @@
typedef uint16_t bank_count_t;
+#ifndef DISABLE_EMBEDDED_BANKS
extern const size_t g_embeddedBanksCount;
+#endif
namespace BanksDump
{
@@ -54,10 +85,13 @@ struct Operator
} /* namespace BanksDump */
+#ifndef DISABLE_EMBEDDED_BANKS
extern const char* const g_embeddedBankNames[];
extern const BanksDump::BankEntry g_embeddedBanks[];
extern const size_t g_embeddedBanksMidiIndex[];
extern const BanksDump::MidiBank g_embeddedBanksMidi[];
extern const BanksDump::InstrumentEntry g_embeddedBanksInstruments[];
extern const BanksDump::Operator g_embeddedBanksOperators[];
+#endif
+#endif // ADLDATA_DB_H