[openal] Attenuation Roll-Off problems (too silent)

Roland Plüss roland at rptd.ch
Fri May 20 17:14:00 EDT 2022

There is also something else I have troubles with which is connected 
with this problem. To do distance sounds I have to manipulate the 
attenuation calculation. To achieve this I tried disabling attenuation 
on a per-sound basis by setting roll-off to 0 and setting the source 
gain to my calculated attenuation. While this works for direct sound 
path I get into troubles with EAX reverb gain. I simply can't figure out 
if the EAX reverb gain is applied to the full volume source or to the 
source with the source gain applied, hence which one is true?

1) final reverb gain = source.gain * source.attenuation * reverb.gain
2) final reverb gain = source.gain * reverb.gain
3) final reverb gain = reverb.gain

The documentation does not state this. I would assume 1 to be true but 
my experiments do not give me a usable answer.

Am 20.05.22 um 10:10 schrieb Chris Robinson:
> On Friday, May 20, 2022 12:47:20 AM PDT Roland Plüss wrote:
>> The reference distance is set to 1 for all sources since I found no
>> definition for how to set it if a physically correct sound is used where
>> you know only it's volume. How is the physically correct value
>> calculated for use with OpenAL?
> The sound designer needs to come up with it, given how loud the sound file is
> at full volume compared to how loud it should be at a given distance. Each
> sound will need manual adjustments made by ear. If you have any information
> about how the sound was recorded (e.g. if it was quiet near sound or a loud
> far sound) and what processing was done to it (e.g. if it was boosted or
> attenuated, and by how much), that can help guide you to proper values, but
> ultimately it needs some trial and error.
> _______________________________________________
> openal mailing list
> openal at openal.org
> http://openal.org/mailman/listinfo/openal

More information about the openal mailing list