aboutsummaryrefslogtreecommitdiff
path: root/backends/midi/adlib.cpp
diff options
context:
space:
mode:
authorMax Horn2004-08-22 13:27:34 +0000
committerMax Horn2004-08-22 13:27:34 +0000
commit759cd67de518a583804ccfb14d5fead44ef05e96 (patch)
tree6692779fa4d01fecbf54f0ab162df7cfefe73975 /backends/midi/adlib.cpp
parent50719f7b6843ba6383ca75c881af589d947150f2 (diff)
downloadscummvm-rg350-759cd67de518a583804ccfb14d5fead44ef05e96.tar.gz
scummvm-rg350-759cd67de518a583804ccfb14d5fead44ef05e96.tar.bz2
scummvm-rg350-759cd67de518a583804ccfb14d5fead44ef05e96.zip
cleanup of TimerProc mess
svn-id: r14683
Diffstat (limited to 'backends/midi/adlib.cpp')
-rw-r--r--backends/midi/adlib.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp
index 662c7d450b..64b768868e 100644
--- a/backends/midi/adlib.cpp
+++ b/backends/midi/adlib.cpp
@@ -537,8 +537,6 @@ static void create_lookup_table() {
lookup_table[i][0] = 0;
}
-typedef void TimerCallback (void *);
-
////////////////////////////////////////
//
// Adlib MIDI driver
@@ -561,7 +559,7 @@ public:
void setPitchBendRange(byte channel, uint range);
void sysEx_customInstrument(byte channel, uint32 type, byte *instr);
- void setTimerCallback(void *timer_param, TimerProc timer_proc);
+ void setTimerCallback(void *timer_param, Timer::TimerProc timer_proc);
uint32 getBaseTempo() {
return 1000000 / BASE_FREQ;
}
@@ -577,7 +575,7 @@ private:
byte *_adlib_reg_cache;
SoundMixer *_mixer;
- TimerCallback *_timer_proc;
+ Timer::TimerProc _timer_proc;
void *_timer_param;
int _adlib_timer_counter;
@@ -966,7 +964,7 @@ void MidiDriver_ADLIB::sysEx_customInstrument(byte channel, uint32 type, byte *i
_parts[channel].sysEx_customInstrument(type, instr);
}
-void MidiDriver_ADLIB::setTimerCallback(void *timer_param, TimerProc timer_proc) {
+void MidiDriver_ADLIB::setTimerCallback(void *timer_param, Timer::TimerProc timer_proc) {
_timer_proc = timer_proc;
_timer_param = timer_param;
}