diff options
author | Matthew Hoops | 2015-04-29 23:45:25 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:47 -0400 |
commit | 8bcbcd6c167e8e7169f006da459f3cbe450a4a59 (patch) | |
tree | cab6d5bf2f9a1a80b73d7ec6caf63e9b9d05760c /audio/fmopl.h | |
parent | dce05c520b2e1f273f395c986573f532ee698921 (diff) | |
download | scummvm-rg350-8bcbcd6c167e8e7169f006da459f3cbe450a4a59.tar.gz scummvm-rg350-8bcbcd6c167e8e7169f006da459f3cbe450a4a59.tar.bz2 scummvm-rg350-8bcbcd6c167e8e7169f006da459f3cbe450a4a59.zip |
AUDIO: Change callback frequency without restarting the audio stream
Diffstat (limited to 'audio/fmopl.h')
-rw-r--r-- | audio/fmopl.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/audio/fmopl.h b/audio/fmopl.h index 243cd294e8..8baa9aa218 100644 --- a/audio/fmopl.h +++ b/audio/fmopl.h @@ -176,15 +176,10 @@ public: void stop(); /** - * Is the OPL running? + * Change the callback frequency. This must only be called from a + * timer proc. */ - virtual bool isRunning() const = 0; - - /** - * Change the callback frequency. This has no effect if start() - * has not already been called. - */ - void setCallbackFrequency(int timerFrequency); + virtual void setCallbackFrequency(int timerFrequency) = 0; enum { /** @@ -218,6 +213,7 @@ public: // OPL API int readBuffer(int16 *buffer, const int numSamples); bool isRunning() const; + void setCallbackFrequency(int timerFrequency); int getRate() const; |