mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +00:00
SUPERNOVA: Ignores mouse clicks while sound is playing
This commit is contained in:
parent
18abc4702a
commit
bc43ff820e
@ -186,6 +186,9 @@ void SupernovaEngine::updateEvents() {
|
||||
// fallthrough
|
||||
case Common::EVENT_RBUTTONUP:
|
||||
// fallthrough
|
||||
if (_mixer->isSoundHandleActive(_soundHandle) &&
|
||||
(_gm->_currentRoom != _gm->_rooms[INTRO]))
|
||||
return;
|
||||
_gm->_mouseClicked = true;
|
||||
case Common::EVENT_MOUSEMOVE:
|
||||
_gm->_mouseClickType = _event.type;
|
||||
@ -269,8 +272,6 @@ void SupernovaEngine::playSound(AudioIndex sample) {
|
||||
11931, Audio::FLAG_UNSIGNED | Audio::FLAG_LITTLE_ENDIAN, DisposeAfterUse::NO);
|
||||
stopSound();
|
||||
_mixer->playStream(Audio::Mixer::kPlainSoundType, &_soundHandle, audioStream);
|
||||
|
||||
// TODO: Stall till sound was played
|
||||
}
|
||||
|
||||
void SupernovaEngine::stopSound() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user