Re: new openal programmer: no attenuation

Chris Robinson <[email protected]> Fri, 12 Oct 2012 20:40:27 -0700
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
On 10/12/2012 07:25 PM, Christopher Howard wrote:
> In short: My app plays sources without any trouble. Also, I can manually
> set the gain of individual sources. However, I don't seem to be getting
> any distance based attenuation at all. The volume of the source always
> sounds the same regardless of the distance between source and listener.
> I'm hoping I have made some common newbie configuration oversight or
> mistake.

Hi.

The first thing to check is to make sure the sound is mono. Stereo 
sounds won't attenuate with distance.

> - set source relative to listener

Also to note, you'll want to set this only when you want the source 
position to be relative to the listener, e.g. a source position of 
{1,0,1} will always make the source sound like it's to the back-right of 
the listener, regardless of where the listener is.

If the source and listener are being given absolute world positions, you 
want to leave AL_SOURCE_RELATIVE at AL_FALSE.
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal