mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
ACCESS: Add a hack to fake queueing
This commit is contained in:
parent
9ef60f3f33
commit
35922c28c8
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user