stride3d / stride3d/stride

Click on short sound effect SoundInstance.Stop()

Open
#814 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Audio bug priority-Low work-estimate-S
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:

  1. Use a wave file loaded as SoundInstance that is about one second long, no more than 1.5 seconds no less than .5 seconds.
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.