mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 21:54:15 +00:00
DIRECTOR: Don't repeat sound if playback ends
We should only check if the last sound we saw in this channel is the same, not if playback of the sound has ended. Otherwise, this can cause a sound to incorrectly loop like in Meet Mediaband.
This commit is contained in:
parent
acc14ba30e
commit
8e5af4d295
@ -104,7 +104,7 @@ void DirectorSound::playCastMember(CastMemberID memberID, uint8 soundChannel, bo
|
||||
if (soundCast->_type != kCastSound) {
|
||||
warning("DirectorSound::playCastMember: attempted to play a non-SoundCastMember %s", memberID.asString().c_str());
|
||||
} else {
|
||||
if (!allowRepeat && lastPlayingCast(soundChannel) == memberID && isChannelActive(soundChannel))
|
||||
if (!allowRepeat && lastPlayingCast(soundChannel) == memberID)
|
||||
return;
|
||||
bool looping = ((SoundCastMember *)soundCast)->_looping;
|
||||
AudioDecoder *ad = ((SoundCastMember *)soundCast)->_audio;
|
||||
|
Loading…
x
Reference in New Issue
Block a user