diff options
Diffstat (limited to 'audio/fmopl.cpp')
-rw-r--r-- | audio/fmopl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/fmopl.cpp b/audio/fmopl.cpp index c9cb1040d6..07c5b44427 100644 --- a/audio/fmopl.cpp +++ b/audio/fmopl.cpp @@ -183,6 +183,14 @@ void OPL::stop() { _callback.reset(); } +void OPL::setCallbackFrequency(int timerFrequency) { + if (!isRunning()) + return; + + stopCallbacks(); + startCallbacks(timerFrequency); +} + bool OPL::_hasInstance = false; EmulatedOPL::EmulatedOPL() : @@ -249,4 +257,10 @@ void EmulatedOPL::stopCallbacks() { //g_system->getMixer()->stopHandle(*_handle); } +bool EmulatedOPL::isRunning() const { + // TODO + //return g_system->getMixer()->isSoundHandleActive(*_handle); + return true; +} + } // End of namespace OPL |