aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h')
-rw-r--r--sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h b/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h
index 3072503610..4c2de467d7 100644
--- a/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h
+++ b/sound/softsynth/fmtowns_pc98/towns_pc98_fmsynth.h
@@ -71,6 +71,10 @@ public:
}
protected:
+ typedef void (TownsPC98_FmSynth::*ChipTimerProc)();
+ void setTimerCallbackA(ChipTimerProc proc = &TownsPC98_FmSynth::timerCallbackA);
+ void setTimerCallbackB(ChipTimerProc proc = &TownsPC98_FmSynth::timerCallbackB);
+
// Implement this in your inherited class if your driver generates
// additional output that has to be inserted into the buffer.
virtual void nextTickEx(int32 *buffer, uint32 bufferSize) {}
@@ -80,8 +84,8 @@ protected:
}
uint8 readSSGStatus();
- virtual void timerCallbackA() = 0;
- virtual void timerCallbackB() = 0;
+ virtual void timerCallbackA() {}
+ virtual void timerCallbackB() {}
// The audio driver can store and apply two different audio settings
// (usually for music and sound effects). The channel mask will determine
@@ -139,8 +143,6 @@ private:
bool _regProtectionFlag;
- typedef void (TownsPC98_FmSynth::*ChipTimerProc)();
-
struct ChipTimer {
bool enabled;
uint16 value;