mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
KYRA: (EOB/Amiga) - t
This commit is contained in:
parent
4c45f9f39f
commit
97ea9fd704
@ -892,6 +892,8 @@ 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".
|
||||
@ -1284,7 +1286,7 @@ void AudioMaster2Internal::fadeOut(int delay) {
|
||||
}
|
||||
|
||||
bool AudioMaster2Internal::isFading() {
|
||||
return _io->isFading();
|
||||
return _ready ? _io->isFading() : false;
|
||||
}
|
||||
|
||||
void AudioMaster2Internal::setMusicVolume(int volume) {
|
||||
@ -1313,18 +1315,18 @@ void AudioMaster2Internal::resetCounter() {
|
||||
}
|
||||
|
||||
int AudioMaster2Internal::getPlayDuration() {
|
||||
return _durationCounter;
|
||||
return _ready ? _durationCounter : 0;
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user