diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/midi/adlib.cpp | 8 | ||||
-rw-r--r-- | backends/midi/ym2612.cpp | 7 |
2 files changed, 6 insertions, 9 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; } diff --git a/backends/midi/ym2612.cpp b/backends/midi/ym2612.cpp index de13537c1c..c6fe5bb646 100644 --- a/backends/midi/ym2612.cpp +++ b/backends/midi/ym2612.cpp @@ -166,8 +166,7 @@ protected: bool _isOpen; SoundMixer *_mixer; - typedef void TimerCallback(void *); - TimerCallback *_timer_proc; + Timer::TimerProc _timer_proc; void *_timer_param; int _next_tick; int _samples_per_tick; @@ -194,7 +193,7 @@ public: void setPitchBendRange(byte channel, uint range) { } void sysEx(byte *msg, uint16 length); - void setTimerCallback(void *timer_param, TimerProc timer_proc); + void setTimerCallback(void *timer_param, Timer::TimerProc timer_proc); uint32 getBaseTempo() { return 1000000 / BASE_FREQ; } MidiChannel *allocateChannel() { return 0; } @@ -769,7 +768,7 @@ void MidiDriver_YM2612::close() { _mixer->setupPremix(0, 0); } -void MidiDriver_YM2612::setTimerCallback(void *timer_param, TimerProc timer_proc) { +void MidiDriver_YM2612::setTimerCallback(void *timer_param, Timer::TimerProc timer_proc) { _timer_proc = timer_proc; _timer_param = timer_param; } |