ACCESS: Add a hack to fake queueing

This commit is contained in:
Strangerke 2014-12-09 00:35:02 +01:00 committed by Paul Gilbert
parent 9ef60f3f33
commit 35922c28c8
2 changed files with 5 additions and 1 deletions

View File

@ -354,9 +354,9 @@ void Opening::doTitle() {
_vm->_buffer2.plotImage(_vm->_objectsTable[0], id, Common::Point(xp, 71));
_vm->_screen->copyFrom(_vm->_buffer2);
_vm->_sound->playSound(1);
_vm->_events->_vbCount = 70;
while (!_vm->shouldQuit() && _vm->_events->_vbCount > 0 && !_skipStart) {
_vm->_sound->playSound(1);
_vm->_events->pollEventsAndWait();
if (_vm->_events->_rightButton)
_skipStart = true;

View File

@ -82,6 +82,10 @@ void SoundManager::playSound(Resource *res, int priority) {
assert(res->_size >= 32);
// HACK: Simulates queueing for the rare sounds played one after the other
while (_mixer->hasActiveChannelOfType(Audio::Mixer::kSFXSoundType))
;
if (READ_BE_UINT32(resourceData) == MKTAG('R','I','F','F')) {
// CD version uses WAVE-files
Common::SeekableReadStream *waveStream = new Common::MemoryReadStream(resourceData, res->_size, DisposeAfterUse::NO);