X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=audio.h;h=1bf710fb3255789fc1e0d9c6f342d6ab48417a93;hb=5e22cdfe9f6f83e807ce6456ab538d02104cd01d;hp=fc9330c1a629d7cc7fb4bb3f3c0e93c5e4e08e91;hpb=d13f2700b1773551307685cc7c34c804ccd6d664;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/audio.h b/audio.h index fc9330c..1bf710f 100644 --- a/audio.h +++ b/audio.h @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved + */ + #include "common.h" #ifndef AUDIO_H @@ -239,7 +243,7 @@ static void audio_sample_occlusion( v3f origin ) } float occlusion = 1.0f - (d * (1.0f/(sample_dist*(float)sample_count))), - rate = ktimestep * k_audio_occlusion_rate, + rate = VG_TIMESTEP_FIXED * k_audio_occlusion_rate, target = powf( occlusion, 6.0f ); audio_occlusion_current = vg_lerpf( audio_occlusion_current, target, rate ); }