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/panning.cpp | |
parent | b8f5e1f4247e8a1d1ebdbe39dad6b235d6d50daa (diff) |
Replace some more macros with constexpr variables
Diffstat (limited to 'alc/panning.cpp')
-rw-r--r-- | alc/panning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp index ad4ba32e..15a05136 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -255,7 +255,7 @@ void InitDistanceComp(ALCdevice *device, const AmbDecConf *conf, if(!GetConfigValueBool(devname, "decoder", "distance-comp", 1) || !(maxdist > 0.0f)) return; - const auto distSampleScale = static_cast<float>(device->Frequency) / SPEEDOFSOUNDMETRESPERSEC; + const auto distSampleScale = static_cast<float>(device->Frequency) / SpeedOfSoundMetersPerSec; const auto ChanDelay = device->ChannelDelay.as_span(); size_t total{0u}; for(size_t i{0u};i < conf->Speakers.size();i++) @@ -508,7 +508,7 @@ void InitPanning(ALCdevice *device, const bool hqdec=false, const bool stablize= float nfc_delay{ConfigValueFloat(devname, "decoder", "nfc-ref-delay").value_or(0.0f)}; if(nfc_delay > 0.0f) - InitNearFieldCtrl(device, nfc_delay * SPEEDOFSOUNDMETRESPERSEC, device->mAmbiOrder, + InitNearFieldCtrl(device, nfc_delay * SpeedOfSoundMetersPerSec, device->mAmbiOrder, true); } else |