Click on short sound effect SoundInstance.Stop()
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release/GitHub (please choose appropriate option)
beta
Version: Version number and/or git branch
4.0.0.1-beta04-1254
Platform(s): Does the problem occur on Windows, Android...?
Windows
Describe the bug
A clear and concise description of what the bug is.
When sound is stopped during playback and the sound is about one second long there is an audible click.
To Reproduce
Steps to reproduce the behavior:
- Use a wave file loaded as SoundInstance that is about one second long, no more than 1.5 seconds no less than .5 seconds.
- During playback have method SoundInstance.Stop() run.
Expected behavior
A clear and concise description of what you expected to happen.
Audio should stop playing without click noise.
Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)
NA
Log and callstacks
If any, please attach here any log or callstack (preferably in a .txt file using GitHub drag and drop)
NA
Additional context
Add any other context about the problem here.
The project with source code. I removed the SoundInstance.Stop() in the ThrustOff() method.
https://github.com/LanceJZ/Stride-Asteroids
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the linked Stride-Asteroids project with a 0.5–1.5 second WAV and SoundInstance.Stop(). Trace the relevant audio behavior from SoundInstance.Stop(); done means stopping playback no longer produces an audible click on Windows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- audio-video-rtc, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100