Hello. I’m playing with spooky ambient sounds and having some annoying issues.
To demonstrate it I made a demo, it’s script only, so you can launch it with any Urho 1.7 binary:
And here is the video of it alongside with spectrogram visualizer:
Fist issue is the fact that sound gain and panning are changing very abruptly. You can see these “steps” on spectrogram. If you pause the video, you can see, that those steps are 0.1 seconds wide.
I found this thread: Sound Issues: Crash and Flickering
Where @cadaver wrote:
Well, dammit. Worst case on good-spec PC, not cool. If anyone going to try my demo, can you please tell, if it is any different for you?
The second issue are the clicks you can hear when changing gain or panning on certain sounds. I assume, it’s a same problem, but even worse.
I tried smoothing the changes out. But first, to smooth out 10 fps problem you have to change parameters very slowly, so much it makes 3d panning useless. Second, on very low volumes changes have to be even slower. First few steps from 0 to something is always very distinct. Third, it does not fix the clicking.
I will be thankful for any advice. Is there any way to fix or work around this problems? Is there a way to force SDL chunk size? Or maybe change parameters gradually inside the chunk? What is your experience with audio system in Urho and what do you think of it?