Skip to content

Commit

Permalink
Improve occluder
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGonauta committed Dec 19, 2023
1 parent c88e080 commit 57ae770
Show file tree
Hide file tree
Showing 4 changed files with 378 additions and 372 deletions.
1 change: 1 addition & 0 deletions include/Effects/EnvEffects.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ namespace MetaAudio
void InterplEffect(int roomtype);
void ApplyEffect(aud_channel_t* ch, qboolean underwater);
void SetListenerOrientation(std::pair<alure::Vector3, alure::Vector3> listenerOrientation);
void SetOccluder(std::shared_ptr<IOcclusionCalculator> occlusion_calculator);
};
}
2 changes: 1 addition & 1 deletion src/AudioEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ namespace MetaAudio
SteamAudio_Init();
settings.Init(gEngfuncs);
settings.RegisterOccluderCallback([&](auto cvar) {
AL_ResetEFX();
al_efx->SetOccluder(GetOccluder());
});
AL_ResetEFX();

Expand Down
Loading

0 comments on commit 57ae770

Please sign in to comment.