aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-10-17 16:39:32 +0000
committerMax Horn2003-10-17 16:39:32 +0000
commitad2db089404e99a2750cd059237dc2a8579e045f (patch)
tree1067985d297a609ab32a6b45aee6508f330905ae
parent96a8d0ec1cb7410d3790c822f2f9d5ce363daeb2 (diff)
downloadscummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.tar.gz
scummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.tar.bz2
scummvm-rg350-ad2db089404e99a2750cd059237dc2a8579e045f.zip
renamed some Timer methods
svn-id: r10868
-rw-r--r--backends/morphos/morphos_timer.cpp4
-rw-r--r--backends/morphos/morphos_timer.h4
-rw-r--r--common/timer.cpp4
-rw-r--r--common/timer.h4
-rw-r--r--scumm/imuse_digi.cpp4
-rw-r--r--scumm/smush/smush_player.cpp4
-rw-r--r--scumm/sound.cpp10
-rw-r--r--sky/sky.cpp2
-rw-r--r--sound/mpu401.cpp6
9 files changed, 21 insertions, 21 deletions
diff --git a/backends/morphos/morphos_timer.cpp b/backends/morphos/morphos_timer.cpp
index 8226bd67c5..c41c63cf93 100644
--- a/backends/morphos/morphos_timer.cpp
+++ b/backends/morphos/morphos_timer.cpp
@@ -73,12 +73,12 @@ void Timer::release()
{
}
-bool Timer::installProcedure(TimerProc procedure, int32 interval)
+bool Timer::installTimerProc(TimerProc procedure, int32 interval)
{
return SendMsg(TSM_MSGID_ADDTIMER, procedure, interval);
}
-void Timer::releaseProcedure(TimerProc procedure)
+void Timer::removeTimerProc(TimerProc procedure)
{
SendMsg(TSM_MSGID_REMTIMER, procedure, 0);
}
diff --git a/backends/morphos/morphos_timer.h b/backends/morphos/morphos_timer.h
index de7e540fb0..cb717d7aeb 100644
--- a/backends/morphos/morphos_timer.h
+++ b/backends/morphos/morphos_timer.h
@@ -62,8 +62,8 @@ class Timer
bool init();
void release();
- bool installProcedure(TimerProc procedure, int32 interval);
- void releaseProcedure(TimerProc procedure);
+ bool installTimerProc(TimerProc procedure, int32 interval);
+ void removeTimerProc(TimerProc procedure);
protected:
bool SendMsg(ULONG MsgID, TimerProc procedure, LONG interval);
diff --git a/common/timer.cpp b/common/timer.cpp
index f96a2e553a..b6c1ce5710 100644
--- a/common/timer.cpp
+++ b/common/timer.cpp
@@ -104,7 +104,7 @@ int Timer::handler(int t) {
return t;
}
-bool Timer::installProcedure(TimerProc procedure, int32 interval, void *refCon) {
+bool Timer::installTimerProc(TimerProc procedure, int32 interval, void *refCon) {
assert(interval > 0);
Common::StackLock lock(_mutex);
@@ -122,7 +122,7 @@ bool Timer::installProcedure(TimerProc procedure, int32 interval, void *refCon)
return false;
}
-void Timer::releaseProcedure(TimerProc procedure) {
+void Timer::removeTimerProc(TimerProc procedure) {
Common::StackLock lock(_mutex);
for (int l = 0; l < MAX_TIMERS; l++) {
diff --git a/common/timer.h b/common/timer.h
index 5aaa7ccf96..d9ac75ea13 100644
--- a/common/timer.h
+++ b/common/timer.h
@@ -52,8 +52,8 @@ public:
Timer(OSystem *system);
~Timer();
- bool installProcedure(TimerProc procedure, int32 interval, void *refCon);
- void releaseProcedure(TimerProc procedure);
+ bool installTimerProc(TimerProc procedure, int32 interval, void *refCon);
+ void removeTimerProc(TimerProc procedure);
protected:
static int timer_handler(int t);
diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp
index faa8b9e425..adfe7ff35c 100644
--- a/scumm/imuse_digi.cpp
+++ b/scumm/imuse_digi.cpp
@@ -695,12 +695,12 @@ IMuseDigital::IMuseDigital(ScummEngine *scumm)
for (int l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
_channel[l]._mixerChannel = 0;
}
- _scumm->_timer->installProcedure(timer_handler, 200000, this);
+ _scumm->_timer->installTimerProc(timer_handler, 200000, this);
_pause = false;
}
IMuseDigital::~IMuseDigital() {
- _scumm->_timer->releaseProcedure(timer_handler);
+ _scumm->_timer->removeTimerProc(timer_handler);
for (int l = 0; l < MAX_DIGITAL_CHANNELS; l++) {
_scumm->_mixer->stopChannel(_channel[l]._mixerChannel);
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp
index c00c493ce5..087a8100b8 100644
--- a/scumm/smush/smush_player.cpp
+++ b/scumm/smush/smush_player.cpp
@@ -260,13 +260,13 @@ void SmushPlayer::init() {
_smixer->_silentMixer = _scumm->_silentDigitalImuse;
_scumm->_smushPlay = true;
_dst = _scumm->virtscr[0].screenPtr + _scumm->virtscr[0].xstart;
- _scumm->_timer->installProcedure(&timerCallback, _speed, _scumm);
+ _scumm->_timer->installTimerProc(&timerCallback, _speed, _scumm);
_alreadyInit = false;
}
void SmushPlayer::deinit() {
- _scumm->_timer->releaseProcedure(&timerCallback);
+ _scumm->_timer->removeTimerProc(&timerCallback);
_scumm->_smushPlay = false;
// In case the timerCallback is active right now, we loop till it finishes.
// Note: even this still leaves a window for race conditions to occur.
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index fc76119742..7f08607cf7 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -1044,7 +1044,7 @@ void Sound::playBundleMusic(const char *song) {
_bundleMusicTrack = 0;
_numberSamplesBundleMusic = _bundle->getNumberOfMusicSamplesByName(song);
_nameBundleMusic = song;
- _scumm->_timer->installProcedure(&music_handler, 1000000, this);
+ _scumm->_timer->installTimerProc(&music_handler, 1000000, this);
} else if (strcmp(_nameBundleMusic, song) != 0) {
_newNameBundleMusic = song;
_musicBundleToBeChanged = true;
@@ -1057,7 +1057,7 @@ void Sound::pauseBundleMusic(bool state) {
void Sound::stopBundleMusic() {
// First stop the music timer
- _scumm->_timer->releaseProcedure(&music_handler);
+ _scumm->_timer->removeTimerProc(&music_handler);
_nameBundleMusic = "";
_scumm->_mixer->stopChannel(_bundleMusicTrack);
if (_musicBundleBufFinal) {
@@ -1412,12 +1412,12 @@ void Sound::startCDTimer() {
else
timer_interval = 101;
- _scumm->_timer->releaseProcedure(&cd_timer_handler);
- _scumm->_timer->installProcedure(&cd_timer_handler, 1000 * timer_interval, _scumm);
+ _scumm->_timer->removeTimerProc(&cd_timer_handler);
+ _scumm->_timer->installTimerProc(&cd_timer_handler, 1000 * timer_interval, _scumm);
}
void Sound::stopCDTimer() {
- _scumm->_timer->releaseProcedure(&cd_timer_handler);
+ _scumm->_timer->removeTimerProc(&cd_timer_handler);
}
void Sound::playCDTrack(int track, int numLoops, int startFrame, int duration) {
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 8337556db5..2ba3848461 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -275,7 +275,7 @@ void SkyEngine::initialise(void) {
_skyMouse->useLogicInstance(_skyLogic);
_timer = Engine::_timer; // initialize timer *after* _skyScreen has been initialized.
- _timer->installProcedure(&timerHandler, 1000000 / 50, this); //call 50 times per second
+ _timer->installTimerProc(&timerHandler, 1000000 / 50, this); //call 50 times per second
_skyControl = new SkyControl(_skyScreen, _skyDisk, _skyMouse, _skyText, _skyMusic, _skyLogic, _skySound, _system, getSavePath());
_skyLogic->useControlInstance(_skyControl);
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);
}
}