diff options
author | Chris Robinson <[email protected]> | 2020-10-21 16:39:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-21 16:39:21 -0700 |
commit | 3e62600ecc3c2f1be4da0d3e8166f5c67cc25fed (patch) | |
tree | a33bb31c8c8d53f96a2112c7f8edb91a190df5e6 /alc/alc.cpp | |
parent | b8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (diff) |
Replace some more macros with constexpr variables
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 6a599dda..9c4be5ed 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2241,7 +2241,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) if(device->AvgSpeakerDist > 0.0f) { /* Reinitialize the NFC filters for new parameters. */ - const float w1{SPEEDOFSOUNDMETRESPERSEC / + const float w1{SpeedOfSoundMetersPerSec / (device->AvgSpeakerDist * static_cast<float>(device->Frequency))}; for(auto &chandata : voice->mChans) chandata.mDryParams.NFCtrlFilter.init(w1); |