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

Audible clicks at the end of encoded sound effects #235

Closed
guygodin opened this issue Oct 16, 2018 · 3 comments
Closed

Audible clicks at the end of encoded sound effects #235

guygodin opened this issue Oct 16, 2018 · 3 comments
Assignees
Labels
area-Audio bug Something isn't working

Comments

@guygodin
Copy link

Release Type: GitHub

Version: 3.0.0.5

Platform(s): Android

Describe the bug
Encoded sound effects have audible clicks at the end.

To Reproduce
Steps to reproduce the behavior:

  1. Add a sound effect with a short wav (1s length)
  2. Build project, deploy and programmatically play the sound.
  3. The sound will click when it reaches the end

Expected behavior
There shouldn't be pops or clicks in encoded sounds

Additional context
I've looked into the SoundAssetCompiler and tried to remove metadata from the generated temp file (by passing "-map_metadata -1" to ffmpeg. I've also made sure the source sound didn't have any clicks in the original signal. I've tried increasing the length of the source wav (with silence at the beginning and end of the signal). I've also double checked that there are no uncleared buffers in the SoundAssetCompiler code. Tried 3 different Android devices running on different versions. I'm running out of ideas. The sounds always produce a click at the end when played back. Only tested on Android as my project doesn't run on Windows. Any help would be appreciated. Thanks!

@guygodin
Copy link
Author

Here's an example of sound which will reproduce the bug:
Click.zip

@Kryptos-FR
Copy link
Member

Could be related to compression of very short wave sounds. I think in those case, it is better to not compress them.

Also @xen2 do we still use Opus/Celt for sounds? Or did we move to only use ffmpeg in all cases?
https://doc.xenko.com/latest/en/manual/audio/audio-asset-properties.html probably needs to be amended.

@mrboni
Copy link

mrboni commented Oct 18, 2018

I'm getting clicks (at the loop point) when looping sounds of any duration, and either compressed or uncompressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Audio bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants