[Openal] Transparently mixing many sounds

Garin Hiebert garinh at cheesetoast.net
Wed Oct 4 09:54:57 PDT 2006


>
> One more question. I've found the gain formula I need, but unless I'm 
> missing something, I don't see the source gain figuring into it. 

That's correct -- the source gain is applied independently of the 
distance formula.

> Once I've determined the actual gain based on distance, how do I apply 
> the individual source gains? Multiplication, such that a source with a 
> gain of 0.6 is 0.6 times whatever its distance model based gain is?

Correct -- the source and listener gain are applied by multiplication 
independently of the distance calculation.

Garin



More information about the Openal mailing list