Loud static within music

I have some background music playing in a gui. It was both WAV and also turned it into OGG to see if that fixed anything. But it sounds like the musics tremble is very high and static like when I put it into defold and when I package it for android. What would cause this and what can I do to fix it?

@jakob.pogulis has very recently looked into the audio system in Defold. Maybe he can shed some light on this?

BTW What happens if you try and play the same ogg or wav file in some other app on your device? Do you crystal clear audio or do you hear the same kind of static noise?

Its clear everywhere but defold. Running it through the engine is loud static behind the music, and deploying to android is the same result

Hello @Hakim_A

I can’t think of anything that would cause the problems you’re describing. Since you experience it on both desktop and Android I’m inclined to think it’s a lua problem, because the two platforms are using different implementations. Could you build a small sample that reproduces the error I can have a look at?

2 Likes

Solved the issue. Instead of having the sounds gain at 0 I set it to -99 and now everything plays clearly!