File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
thirdparty/bungee_library/upstream/src Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1919#include < array>
2020#include < complex>
2121#include < memory>
22- #include < numbers>
2322
2423namespace Bungee {
2524
Original file line number Diff line number Diff line change 66#include " Instrumentation.h"
77#include " log2.h"
88
9- #include < numbers>
10-
119namespace Bungee {
1210
1311using namespace Internal ;
1412
1513namespace {
16- static constexpr float pi = std::numbers::pi_v <float >;
14+ static constexpr float pi = static_cast <float >( 3 . 141592653589793238462643383279502884L ) ;
1715static constexpr float gain = (3 * pi) / (3 * pi + 8 );
1816} // namespace
1917
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ void Internal::Stretcher::synthesiseGrain(OutputChunk &outputChunk)
102102
103103 auto t = temporary.topRows (grain.validBinCount );
104104
105- t = grain.rotation .topRows (grain.validBinCount ).cast <float >() * (std::complex <float >{0 , std::numbers::pi_v <float > / 0x8000 });
105+ t = grain.rotation .topRows (grain.validBinCount ).cast <float >() * (std::complex <float >{0 , static_cast <float >( 3 . 141592653589793238462643383279502884L ) / 0x8000 });
106106 t = t.exp ();
107107
108108 if (grain.reverse ())
You can’t perform that action at this time.
0 commit comments