aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-06-20 21:30:20 +1000
committerPaul Gilbert2011-06-20 21:30:20 +1000
commit7c733a538c5c333041cb35975f215d3b354468ea (patch)
treeeaaab48670f07d89b472f9ff8867e21876ce86d8
parentc22f824bedceca3dd89bded1bccbc8d2d1ef1b8c (diff)
downloadscummvm-rg350-7c733a538c5c333041cb35975f215d3b354468ea.tar.gz
scummvm-rg350-7c733a538c5c333041cb35975f215d3b354468ea.tar.bz2
scummvm-rg350-7c733a538c5c333041cb35975f215d3b354468ea.zip
TSAGE: Sound is now working!
-rw-r--r--engines/tsage/sound.cpp8
-rw-r--r--engines/tsage/sound.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp
index 9d397c7fe5..73eaa5fb2e 100644
--- a/engines/tsage/sound.cpp
+++ b/engines/tsage/sound.cpp
@@ -51,8 +51,6 @@ SoundManager::SoundManager() {
_needToRethink = false;
_soTimeIndexFlag = false;
- _updateTicksCounter = 0;
- _eventsDelay = GAME_FRAME_TIME;
}
SoundManager::~SoundManager() {
@@ -117,11 +115,7 @@ void SoundManager::syncSounds() {
}
void SoundManager::update() {
- ++_updateTicksCounter;
- if (_updateTicksCounter > _eventsDelay) {
- _sfSoundServer();
- _updateTicksCounter = 0;
- }
+ _sfSoundServer();
}
Common::List<SoundDriverEntry> &SoundManager::buildDriverList(bool detectFlag) {
diff --git a/engines/tsage/sound.h b/engines/tsage/sound.h
index 9b76cd4a06..722e33d8d4 100644
--- a/engines/tsage/sound.h
+++ b/engines/tsage/sound.h
@@ -177,8 +177,6 @@ public:
Common::List<Sound *> _soundList;
Common::List<SoundDriverEntry> _availableDrivers;
bool _needToRethink;
- int _updateTicksCounter;
- int _eventsDelay;
// Misc flags
bool _soTimeIndexFlag;
public: