[Openal] distance factor
Garin Hiebert
garinh at turkeytrot.dhs.org
Wed Nov 19 11:15:03 PST 2003
> Is there a way to change the distance factor in
> OpenAL? By distance factor, I mean change the default
> units that are used, so say you could specify that one
> unit would indicate 1 meter, 1 km, etc?
OpenAL doesn't have a notion of distance factor (for better or for worse
-- I don't really want to re-ignite an old debate here). The factors
controlling distance attenuation are -- AL_GAIN (for the listener and
sources), AL_ROLLOFF_FACTOR, AL_REFERENCE_DISTANCE, AL_MAX_DISTANCE,
AL_MIN_GAIN, and AL_MAX_GAIN. The relevant part of the OpenAL 1.0 spec
is 3.3-3.4. The factor you're most concerned about is indeed
AL_REFERENCE_DISTANCE.
Garin
More information about the Openal
mailing list