diff options
-rw-r--r-- | backends/midi/emumidi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/midi/emumidi.h b/backends/midi/emumidi.h index 529662b7ee..a7b3821e82 100644 --- a/backends/midi/emumidi.h +++ b/backends/midi/emumidi.h @@ -40,6 +40,7 @@ private: protected: virtual void generate_samples(int16 *buf, int len) = 0; + virtual void on_timer() {} public: MidiDriver_Emulated(SoundMixer *mixer) : _mixer(mixer) { @@ -90,6 +91,7 @@ public: if (!(_next_tick >> FIXP_SHIFT)) { if (_timer_proc) (*_timer_proc)(_timer_param); + on_timer(); _next_tick += _samples_per_tick; } data += step * stereoFactor; |