rate of SNDINFO audio attenuation in units?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
|ndußtrial
Posts: 398
Joined: Sat Aug 17, 2013 11:39 am
Graphics Processor: Intel (Modern GZDoom)
Location: Ivy Mercy Lyons

rate of SNDINFO audio attenuation in units?

Post by |ndußtrial »

while this is a narrow question, i thought the actual complexity of the answer, given the fact that it seems to be a bit of an abstract representation. would warrant a separate thread for this question.

the SNDINFO page appears to describe the rate of falloff as an inverse variation of some kind; the problem is, of course, that the actual effect on the distance is covered by general adjectives, such as "more quickly", "faster", and just "decreases"; is there a function relating to this?

also, could you express an algorithm, to a degree, in boolean algebra? the "abstract" nature trips me up...
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: rate of SNDINFO audio attenuation in units?

Post by randi »

Attenuation is done by multiplying the sound's distance by the attenuation value and using that as the distance in volume calculations. e.g. If attenuation is 2, then the volume at a particular distance from a sound will be the same as the volume two times further for the same sound with an attenuation of 1. If attenuation is 0.5, the the volume you hear will be the same as the volume at half the distance when the attenuation was 1.
Locked

Return to “Editing (Archive)”