[Openal] Low gain and Clipping

Daniel PEACOCK dpeacock at creativelabs.com
Mon Sep 6 01:42:07 PDT 2010


Hi,

You should check all your mixer settings to make sure you are recording
*and* playing back the signal at decent levels.

With the default Listener and Source positions, OpenAL is not going to
attenuate your samples at all (except maybe to allow for a bit of headroom
which will be a fairly small amount).

Dan
Creative Labs (UK) Ltd.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at 79 Knightsbridge, London SW1X 7RB



                                                                           
             Chris Robinson                                                
             <chris.kcat at gmail                                             
             .com>                                                      To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       Re: [Openal] Low gain and Clipping  
                                                                           
             04/09/2010 17:26                                              
                                                                           
                                                                           
                                                                           
                                                                           




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?
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0008042A



More information about the Openal mailing list