DIRECTOR: D3 keeps looping sounds

This commit is contained in:
Misty De Meo 2023-02-09 21:35:18 -08:00 committed by Eugene Sandulenko
parent 78a245519e
commit 869c6921a2
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -135,7 +135,9 @@ void DirectorSound::playCastMember(CastMemberID memberID, uint8 soundChannel, bo
// 4. maybe more?
if (shouldStopOnZero(soundChannel)) {
stopSound(soundChannel);
} else {
// Director 4 will stop after the current loop iteration, but
// Director 3 will continue looping until the sound is replaced.
} else if (g_director->getVersion() >= 400) {
// If there is a loopable stream specified, set the loop to expire by itself
if (_channels[soundChannel - 1].loopPtr) {
debugC(5, kDebugSound, "DirectorSound::playCastMember(): telling loop in channel %d to stop", soundChannel);