Clicking sound when starting an audio source

Started by abcdef, August 18, 2013, 08:50:22

Previous topic - Next topic

abcdef

Hi

When using OpenAL I have come across an issue where when starting to play a source I get a clicking/crackling noise. I think this is due to abrupt sample amplitude changes (ie if my range is 0-255 and it starts at 127 the jump to 127 from 0 causes the click). Is there a way to remove these "clicks" or for Lwjgl OpenAL to fade in to the start of a piece of sound?

Thanks