From 8a0a939a3281a31fc17327d24f0a4c0975a1b9fa Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 10 Apr 2018 02:15:03 +0300 Subject: [Experimental] Added support for emulation core switching in real time! Due to clunky playback on updated Nuked OPL3 emulator v 1.8, I kept the Nuked OPL3 1.7.4 work in parallel and be a separated switchable emulator. --- src/chips/opl_chip_base.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/chips/opl_chip_base.cpp (limited to 'src/chips/opl_chip_base.cpp') diff --git a/src/chips/opl_chip_base.cpp b/src/chips/opl_chip_base.cpp new file mode 100644 index 0000000..65d4b73 --- /dev/null +++ b/src/chips/opl_chip_base.cpp @@ -0,0 +1,22 @@ +#include "opl_chip_base.h" + +OPLChipBase::OPLChipBase() : + m_rate(44100) +{} + +OPLChipBase::OPLChipBase(const OPLChipBase &c): + m_rate(c.m_rate) +{} + +OPLChipBase::~OPLChipBase() +{} + +void OPLChipBase::setRate(uint32_t rate) +{ + m_rate = rate; +} + +void OPLChipBase::reset(uint32_t rate) +{ + setRate(rate); +} -- cgit v1.2.3