diff options
author | Christopher Snowhill <kode54@gmail.com> | 2018-07-29 20:52:26 -0700 |
---|---|---|
committer | Christopher Snowhill <kode54@gmail.com> | 2018-07-29 20:52:26 -0700 |
commit | 0f69d504792776967b61f8987ad458c48b4a322f (patch) | |
tree | 0884f6008b6433b3f25d454884d8c9f6b9f7fac1 /src/chips/dosbox_opl3.cpp | |
parent | b5a38c540d5a2b5b6750a49eb25ca3c7388b099c (diff) | |
download | libADLMIDI-0f69d504792776967b61f8987ad458c48b4a322f.tar.gz libADLMIDI-0f69d504792776967b61f8987ad458c48b4a322f.tar.bz2 libADLMIDI-0f69d504792776967b61f8987ad458c48b4a322f.zip |
Implemented optional soft panning support for the included chip emulators, disabled by default.
Diffstat (limited to 'src/chips/dosbox_opl3.cpp')
-rw-r--r-- | src/chips/dosbox_opl3.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chips/dosbox_opl3.cpp b/src/chips/dosbox_opl3.cpp index f783afe..37f5e9c 100644 --- a/src/chips/dosbox_opl3.cpp +++ b/src/chips/dosbox_opl3.cpp @@ -61,6 +61,12 @@ void DosBoxOPL3::writeReg(uint16_t addr, uint8_t data) chip_r->WriteReg(static_cast<Bit32u>(addr), data); } +void DosBoxOPL3::writePan(uint16_t addr, uint8_t data) +{ + DBOPL::Handler *chip_r = reinterpret_cast<DBOPL::Handler*>(m_chip); + chip_r->WritePan(static_cast<Bit32u>(addr), data); +} + void DosBoxOPL3::nativeGenerateN(int16_t *output, size_t frames) { DBOPL::Handler *chip_r = reinterpret_cast<DBOPL::Handler*>(m_chip); |