[Openal] Reuse of source objects in 1.0 vs. 1.1
Garin Hiebert
garinh at cheesetoast.net
Tue Sep 27 11:12:44 PDT 2005
> The first thing that comes to mind from the looks of
> aluComputeSourceParameters() is that essentially "everything" needs
> to be set on the source to cause the 3D effects to produce "no
> change" (which is okay). It might be nice to have some kind of
> AL_SOURCE_2D or AL_SOURCE_MODE_2D flag or something that could
> short-circuit the math - since these kinds of sources will end up
> with "no change" resulting from all that computation of vectors and
> matrix multiplication, etc. (Or worse, will get get some small
> amount of random effect due to potential float inaccuracies).
The general idea of having a flag for "spatialized" or "not
spatialized" has come up before, of course, and will certainly be
discussed again...
In the meantime, you will indeed want to have a routine to "clean up"
a source before re-use, and I'm hopeful that yesterday's changes
combined with such a routine will get things working for you...
Garin
More information about the Openal
mailing list