aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2004-10-19 23:03:04 +0000
committerMax Horn2004-10-19 23:03:04 +0000
commit72df42e0475f6f32425ba0e969e1c1b5a7b21646 (patch)
tree94644053fd1afc099a58435cb810b061074aa021 /backends
parentf4443646e51c86656a82eabf6a9e592fb8a842e5 (diff)
downloadscummvm-rg350-72df42e0475f6f32425ba0e969e1c1b5a7b21646.tar.gz
scummvm-rg350-72df42e0475f6f32425ba0e969e1c1b5a7b21646.tar.bz2
scummvm-rg350-72df42e0475f6f32425ba0e969e1c1b5a7b21646.zip
Fix for bug #1049937 (FOA: Regression in Adlib music)
svn-id: r15618
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/emumidi.h2
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;