From 2ba770631ff1dc978d16a874a4ab99930ce12d2d Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 19 Aug 2020 02:11:01 +0300 Subject: Use new banks database format However, it's stil need to clean-up and fix gen_adldata for a correct work! --- src/adlmidi_db.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/adlmidi_db.h') 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 + * ADLMIDI Library API: Copyright (c) 2015-2020 Vitaly Novichkov + * + * 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 . + */ + + +#ifndef ADLDATA_DB_H +#define ADLDATA_DB_H + +#pragma once + #include #include #include @@ -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 -- cgit v1.2.3