aboutsummaryrefslogtreecommitdiff
path: root/src/chips/dosbox_opl3.cpp
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-06-19 16:12:27 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-06-19 16:25:36 +0200
commit3013fbb93b06e8d30b6b54c324340d6dccad7f3b (patch)
tree8ffbd8d896849ffd418bccf5d429f74e7f63c6d2 /src/chips/dosbox_opl3.cpp
parent70c83caace9911dc5d8b80c1653c96b073f88e4a (diff)
downloadlibADLMIDI-3013fbb93b06e8d30b6b54c324340d6dccad7f3b.tar.gz
libADLMIDI-3013fbb93b06e8d30b6b54c324340d6dccad7f3b.tar.bz2
libADLMIDI-3013fbb93b06e8d30b6b54c324340d6dccad7f3b.zip
get chip base on level with OPNMIDI
Diffstat (limited to 'src/chips/dosbox_opl3.cpp')
-rw-r--r--src/chips/dosbox_opl3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chips/dosbox_opl3.cpp b/src/chips/dosbox_opl3.cpp
index af4cb08..30fa38e 100644
--- a/src/chips/dosbox_opl3.cpp
+++ b/src/chips/dosbox_opl3.cpp
@@ -23,7 +23,7 @@ void DosBoxOPL3::setRate(uint32_t rate)
DBOPL::Handler *chip_r = reinterpret_cast<DBOPL::Handler*>(m_chip);
chip_r->~Handler();
new(chip_r) DBOPL::Handler;
- chip_r->Init(49716);
+ chip_r->Init(effectiveRate());
}
void DosBoxOPL3::reset()
@@ -32,7 +32,7 @@ void DosBoxOPL3::reset()
DBOPL::Handler *chip_r = reinterpret_cast<DBOPL::Handler*>(m_chip);
chip_r->~Handler();
new(chip_r) DBOPL::Handler;
- chip_r->Init(49716);
+ chip_r->Init(effectiveRate());
}
void DosBoxOPL3::writeReg(uint16_t addr, uint8_t data)