Game Development Community

Clicking noise when interpolating the volume of a sound

by Leo Willman · in Torque Game Engine · 08/08/2006 (12:42 am) · 1 replies

Hi,

I'm trying to create a blowing wind sound effect by interpolating the volume, from low to high and back to low, of a stereo wind sound. This is done with a simple schedule that every 50 ms calculates the new volume and sets it with alxSourcef( wind, AL_GAIN, new_volume ). This works fine except that it's causes a clicking noise at random intervals.

Playing the sound without changing the volume works fine. Also calling alxSourcef with a constant new_volume value every 50 ms works fine without any clicking noises. The clicking sound also gets less noticeable if I lower the amout by which the volume is changed each update but it's still distracting.

I'm using the latest version of OpenAL and also tested it on another computer with another sound card but still the same problem. If anyone has any ideas for fixing this I would really appreciate it. Thanks!


Leo Willman
Lockpick Entertainment

#1
08/08/2006 (6:36 am)
Couldn't you just alter the sound file itself within an audio editing utility to achieve the desired volume fluctuation?

If not, perhaps try experimenting using a different extension. I.e. if you're using ogg use a wav instead & vice versa.

I'd recommend using wav over ogg. Ogg's chew up more processing power due to the compression and Torque generally doesn't handle them very well.