[Openal-devel] AL_REFERENCE_DISTANCE Question

Chris Share cshare01 at qub.ac.uk
Wed Apr 5 08:43:23 PDT 2006


Hi,

I'm a bit confused about the usage of AL_REFERENCE_DISTANCE.

In the Programmer's Guide it states that:

AL_REFERENCE_DISTANCE f, fv, i, iv the distance under which the volume 
for the source would normally drop by half (before being influenced
by rolloff factor or AL_MAX_DISTANCE)

However, in the Specification it says that:

1. Distance attenuation is calculated first, including minimum
(AL_REFERENCE_DISTANCE) and maximum (AL_MAX_DISTANCE) thresholds.


I'm confused about AL_REFERENCE_DISTANCE. What exactly is it doing?

Is it a threshold value or something else.

In my demo program it defaults to a value of 1.0. Is that correct?

Cheers,

Chris



More information about the Openal-devel mailing list