Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCI: kDoAudio stops samples played with kDoSound #2792

merged 1 commit into from Feb 22, 2021


Copy link

@sluicebox sluicebox commented Feb 22, 2021

This fixes subtle sound bugs in SCI16 games with speech. The SQ4CD introduction has at least two:

  • When the alien dissolves in a puddle of vomit, the sound keeps playing during the narration in the next room
  • When the Vohaul hologram appears, the static sound effect keeps playing when he talks

In both of these cases, the digital sample should have stopped as soon as speech started.

In SSCI, digital samples are handled by kDoAudio. If a digital sample is played with kDoSound then SSCI just calls kDoAudio and it still does the work. When kDoAudio plays, it first stops any samples that it already played.

In ScummVM, all sounds played with kDoSound are handled separately from kDoAudio, even if they're samples, so an extra step is needed for our kDoAudio to stop all samples as SSCI does.

[ Ignore the name of my branch; I wasn't paying attention ]

bluegr approved these changes Feb 22, 2021
@sluicebox sluicebox merged commit de94434 into scummvm:master Feb 22, 2021
3 checks passed
3 checks passed
Codacy Static Code Analysis Codacy Static Code Analysis
continuous-integration/travis-ci/pr The Travis CI build passed
deepcode-ci-bot Well done, no issues found!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants