[Openal] Linux: AL_CUTTOFF_ATTENUATION set too high?
Adam D. Moss
adam at gimp.org
Wed Jun 22 13:01:07 PDT 2005
Elias Naur wrote:
> I'm working on the RTS game Tribal Trouble, which is using OpenAL for sound
> effects and music on Linux, Mac OS X and windows. However, after some
> experiments, it quickly became apparent that Linux has a much higher minimum
> source gain threshold when using distance attenuation or simply source gain.
> This results in sounds being audible too far away, or too abrupt source
> I digged through the openal source code (latest from CVS as of today) and
> found that the minimum source gain is controlled by _AL_CUTTOFF_ATTENUATION
> defined in al_attenuation.h. The constant comment states that the purpose of
> the minimum is to avoid popping artifacts, but the current value (0.01) seems
> way too high for me. I tried a value of 0, which gave me the same sound
> experience as on the other platforms, but since 0 is probably not the right
> value, I'm asking: Is 0.01 set too high or am I just being too picky
> regarding source gain and distance attenuation?
Sorry for the very late response. I think this is just set too high!
Did you deploy with a different value? I think this should probably
be 1/256 or even smaller.
Adam D. Moss - adam at gimp.org
More information about the Openal