Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the source gain to 0 before stopping it
Stopping a source in the middle of playback can causing undesirable "popping" from a sudden change in amplitude. Setting the source gain to 0 gives OpenAL the opportunity to ramp the source's output to 0, where it can be safely stopped without causing a sudden change in amplitude.
- Loading branch information
Showing
2 changed files
with
96 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters