From 6f50feb359c9e6e4aaef8a5985eef5f38cd6c5fa Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 11 Jun 2003 07:14:39 +0000 Subject: fixed cast warnings svn-id: r8435 --- sound/mpu401.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sound/mpu401.h') diff --git a/sound/mpu401.h b/sound/mpu401.h index a85bb6af0c..592ca67a20 100644 --- a/sound/mpu401.h +++ b/sound/mpu401.h @@ -75,10 +75,12 @@ public: class MidiDriver_MPU401 : public MidiDriver { private: + typedef void (*TimerCallback) (void*); + MidiChannel_MPU401 _midi_channels [16]; volatile bool _started_thread; void *_mutex; // Concurrent shutdown barrier - volatile void *_timer_proc; + volatile TimerCallback _timer_proc; void *_timer_param; static int midi_driver_thread (void *param); @@ -87,7 +89,7 @@ public: MidiDriver_MPU401(); virtual void close(); - void setTimerCallback(void *timer_param, void (*timer_proc) (void *)); + void setTimerCallback(void *timer_param, TimerCallback timer_proc); uint32 getBaseTempo(void) { return 10000; } MidiChannel *allocateChannel(); -- cgit v1.2.3