aboutsummaryrefslogtreecommitdiff
path: root/audio/fmopl.h
diff options
context:
space:
mode:
authorMatthew Hoops2015-04-21 00:43:43 -0400
committerMatthew Hoops2015-07-07 20:19:44 -0400
commit5b06eef1597ce701a4f6d16854be077b952d29f7 (patch)
treeeb12ff6939c312b1b56c8506aa0cb3e39fa2e1ca /audio/fmopl.h
parentcc6e304af1b7021c7ee471f55c0674dac1bfb253 (diff)
downloadscummvm-rg350-5b06eef1597ce701a4f6d16854be077b952d29f7.tar.gz
scummvm-rg350-5b06eef1597ce701a4f6d16854be077b952d29f7.tar.bz2
scummvm-rg350-5b06eef1597ce701a4f6d16854be077b952d29f7.zip
AUDIO: Allow for changing the OPL timer rate
Diffstat (limited to 'audio/fmopl.h')
-rw-r--r--audio/fmopl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/fmopl.h b/audio/fmopl.h
index 0e2e2b2dda..243cd294e8 100644
--- a/audio/fmopl.h
+++ b/audio/fmopl.h
@@ -175,6 +175,17 @@ public:
*/
void stop();
+ /**
+ * Is the OPL running?
+ */
+ virtual bool isRunning() const = 0;
+
+ /**
+ * Change the callback frequency. This has no effect if start()
+ * has not already been called.
+ */
+ void setCallbackFrequency(int timerFrequency);
+
enum {
/**
* The default callback frequency that start() uses
@@ -206,6 +217,7 @@ public:
// OPL API
int readBuffer(int16 *buffer, const int numSamples);
+ bool isRunning() const;
int getRate() const;