[Openal] Low gain and Clipping

Chris Robinson chris.kcat at gmail.com
Sat Sep 4 09:26:34 PDT 2010


On Friday, September 03, 2010 4:52:06 am Fruskus wrote:
> My vocoder is working ok, but I have the next issue:
> The gain is so low I need to turn my speakers up to the max just for
> average volume.
> I've tried to set source gain to 2.0 but clipping appears. It also happens
> if I multiply by 1.5, or something like that, the buffer which contains the
> samples. And as long as it's a "real time" application, I can't normalize
> the samples.

Hi.

That's odd. Setting the source volume to 2.0 should still clamp it to 1.0 
because of AL_MAX_GAIN (which can't go above 1.0). If the sound is mono, make 
sure you set source's AL_SOURCE_RELATIVE property to true, and set the 
position to {0, 0, 0}, to prevent distance attenuation. Otherwise, make sure 
the sound itself isn't too quiet.

If that doesn't help, what OS and OpenAL version are you using?


More information about the Openal mailing list