constexpr variables
This commit is contained in:
parent
70743900b5
commit
543c638926
2 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ public:
|
|||
template <class C>
|
||||
static Type normalizedGain(Type cutoff, C sampleRate)
|
||||
{
|
||||
return std::tan(cutoff / static_cast<Type>(sampleRate) * fPi);
|
||||
return std::tan(cutoff / static_cast<Type>(sampleRate) * pi<float>());
|
||||
}
|
||||
|
||||
OnePoleFilter(Type gain)
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@ void sfz::pan<float, true>(absl::Span<const float> panEnvelope, absl::Span<float
|
|||
}
|
||||
|
||||
const auto mmOne = _mm_set_ps1(1.0f);
|
||||
const auto mmPiFour = _mm_set_ps1(piFour<float>);
|
||||
const auto mmPiFour = _mm_set_ps1(piFour<float>());
|
||||
__m128 mmCos;
|
||||
__m128 mmSin;
|
||||
while (pan < lastAligned) {
|
||||
|
|
@ -660,7 +660,7 @@ void sfz::width<float, true>(absl::Span<const float> widthEnvelope, absl::Span<f
|
|||
incrementAll(width, left, right);
|
||||
}
|
||||
|
||||
const auto mmPiFour = _mm_set_ps1(piFour<float>);
|
||||
const auto mmPiFour = _mm_set_ps1(piFour<float>());
|
||||
__m128 mmCos;
|
||||
__m128 mmSin;
|
||||
while (width < lastAligned) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue