aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-13 19:01:30 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-13 19:01:30 +0300
commitbe5cdf28369da49f316e08dca0e51c24f37cfe84 (patch)
tree3ac091873325e2a00950c01a423a5a2f979fc48a /src/adlmidi_opl3.hpp
parent10ee01dbcab85c3b2828b0551e017a2c2963a41b (diff)
downloadlibADLMIDI-be5cdf28369da49f316e08dca0e51c24f37cfe84.tar.gz
libADLMIDI-be5cdf28369da49f316e08dca0e51c24f37cfe84.tar.bz2
libADLMIDI-be5cdf28369da49f316e08dca0e51c24f37cfe84.zip
Refactor internal instrument data structures
Diffstat (limited to 'src/adlmidi_opl3.hpp')
-rw-r--r--src/adlmidi_opl3.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adlmidi_opl3.hpp b/src/adlmidi_opl3.hpp
index b47c2ed..1172a45 100644
--- a/src/adlmidi_opl3.hpp
+++ b/src/adlmidi_opl3.hpp
@@ -66,7 +66,7 @@ public:
private:
//! Cached patch data, needed by Touch()
- std::vector<adldata> m_insCache;
+ std::vector<OplTimbre> m_insCache;
//! Value written to B0, cached, needed by NoteOff.
/*! Contains Key on/off state, octave block and frequency number values
*/
@@ -81,7 +81,7 @@ public:
struct Bank
{
//! MIDI Bank instruments
- adlinsdata2 ins[128];
+ OplInstMeta ins[128];
};
typedef BasicBankMap<Bank> BankMap;
//! MIDI bank instruments data
@@ -91,7 +91,7 @@ public:
public:
//! Blank instrument template
- static const adlinsdata2 m_emptyInstrument;
+ static const OplInstMeta m_emptyInstrument;
//! Total number of running concurrent emulated chips
uint32_t m_numChips;
//! Currently running embedded bank number. "CustomBankTag" means usign of the custom bank.
@@ -277,7 +277,7 @@ public:
* @param c Channel of chip (Emulated chip choosing by next formula: [c = ch + (chipId * 23)])
* @param instrument Instrument data to set into the chip channel
*/
- void setPatch(size_t c, const adldata &instrument);
+ void setPatch(size_t c, const OplTimbre &instrument);
/**
* @brief Set panpot position