aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/mpu401.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/mpu401.cpp b/sound/mpu401.cpp
index 0f25d600b7..7239e83727 100644
--- a/sound/mpu401.cpp
+++ b/sound/mpu401.cpp
@@ -93,7 +93,7 @@ MidiDriver_MPU401::MidiDriver_MPU401() :
void MidiDriver_MPU401::close() {
if (_timer_proc)
- g_timer->releaseProcedure(_timer_proc);
+ g_timer->removeTimerProc(_timer_proc);
_timer_proc = 0;
for (int i = 0; i < 16; ++i)
send (0x7B << 8 | 0xB0 | i);
@@ -128,9 +128,9 @@ MidiChannel *MidiDriver_MPU401::allocateChannel() {
void MidiDriver_MPU401::setTimerCallback(void *timer_param, TimerProc timer_proc) {
if (!_timer_proc || !timer_proc) {
if (_timer_proc)
- g_timer->releaseProcedure(_timer_proc);
+ g_timer->removeTimerProc(_timer_proc);
_timer_proc = timer_proc;
if (timer_proc)
- g_timer->installProcedure(timer_proc, 10000, timer_param);
+ g_timer->installTimerProc(timer_proc, 10000, timer_param);
}
}