ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.26k stars 158 forks source link

Steam Audio Binaural / Unity - audio crackling when blending between binaural and 2D stereo #147

Open FlavienCollet opened 3 years ago

FlavienCollet commented 3 years ago

Hello, I try to solve this issue for many days now... I have audio crackling when moving fast my AudioSource which have a Blend between 2D stereo and Binaural Steam Audio spatializer (cf. screenshot and you can listen this here : https://www.youtube.com/watch?v=3ykrhA2rX1s ) Blend_2D_binaural_Unity_01

I tried to change DSP buffer size, I tested whith .ogg file, .wav file, "Decompress on Load", "Compressed in Memory", "Streaming", different compression format and two Audio devices (my Focusrite Scarlett 2i2 USB and my built-in Realtek). On Steam Audio Source I tried "Nearest" and "Bilinear" HRTF interpolation. I tried in Unity and the Build. Nothing change... Audio crackling continue... Especially on low freq noisy sounds. An idea ?

(here is a screenshot of the audio "desync" : ) audio_cracotte_01_B

21pdavis commented 6 months ago

Hi @FlavienCollet - did you ever figure this out? I believe I'm running into a similar issue with Steam Audio in Unity where when I turn my character's head, audio becomes briefly distorted and crackling.

lakulish commented 6 months ago

@21pdavis Can you provide a video of the issue, and preferably a minimal project that reproduces it? Also, are you using nearest-neighbor interpolation with your HRTF, or bilinear?