aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorathrxx2019-06-21 14:18:03 +0200
committerathrxx2019-06-21 14:19:42 +0200
commit80f163b0fc7fc033aa99b829f626784804bf5176 (patch)
treeb2fb2b2040a5bda107ea9b2576f8d96a262a03f1 /engines/kyra
parent08dba769f10ace19e46555eddb957ec7d508f58d (diff)
downloadscummvm-rg350-80f163b0fc7fc033aa99b829f626784804bf5176.tar.gz
scummvm-rg350-80f163b0fc7fc033aa99b829f626784804bf5176.tar.bz2
scummvm-rg350-80f163b0fc7fc033aa99b829f626784804bf5176.zip
ALL: revert accidental commits
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound/drivers/audiomaster2.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/kyra/sound/drivers/audiomaster2.cpp b/engines/kyra/sound/drivers/audiomaster2.cpp
index c22f8737cc..d50d51966f 100644
--- a/engines/kyra/sound/drivers/audiomaster2.cpp
+++ b/engines/kyra/sound/drivers/audiomaster2.cpp
@@ -892,8 +892,6 @@ void AudioMaster2ResourceManager::initResource(SoundResource *resource) {
if (!resource)
return;
- Common::StackLock lock(_mutex);
-
SoundResource *res = retrieveFromChain(resource->getName());
// The driver does not replace resources with the same name, but disposes the new resource instead.
// So these names seem to be considered "globally unique".
@@ -1286,7 +1284,7 @@ void AudioMaster2Internal::fadeOut(int delay) {
}
bool AudioMaster2Internal::isFading() {
- return _ready ? _io->isFading() : false;
+ return _io->isFading();
}
void AudioMaster2Internal::setMusicVolume(int volume) {
@@ -1315,18 +1313,18 @@ void AudioMaster2Internal::resetCounter() {
}
int AudioMaster2Internal::getPlayDuration() {
- return _ready ? _durationCounter : 0;
+ return _durationCounter;
}
void AudioMaster2Internal::sync(SoundResource *res) {
if (!_ready || !res)
return;
- Common::StackLock lock(_mutex);
-
if (res->getType() != 1)
return;
+ Common::StackLock lock(_mutex);
+
SoundResourceSMUS *smus = static_cast<SoundResourceSMUS*>(res);
_io->_tempo = smus->getTempo();
smus->setSync(_io->_sync);