aboutsummaryrefslogtreecommitdiff
path: root/sound/mpu401.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-17 16:39:32 +0000
committerMax Horn2003-10-17 16:39:32 +0000
commitad2db089404e99a2750cd059237dc2a8579e045f (patch)
tree1067985d297a609ab32a6b45aee6508f330905ae /sound/mpu401.cpp
parent96a8d0ec1cb7410d3790c822f2f9d5ce363daeb2 (diff)
downloadscummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.tar.gz
scummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.tar.bz2
scummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.zip
renamed some Timer methods
svn-id: r10868
Diffstat (limited to 'sound/mpu401.cpp')
-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);
}
}