Make sure MSVC knows which version of 'floor()' we want

This commit is contained in:
John Emmas 2016-05-22 15:53:16 +01:00
parent 03660573e2
commit 39ba60aaef

View File

@ -1724,7 +1724,7 @@ DummyAudioPort::setup_generator (GeneratorType const g, float const samplerate,
break;
case SineWaveOctaves:
{
const int x = c - floor (total / 2);
const int x = c - floor (((float)total / 2));
float f = powf (2.f, x / 3.f) * 1000.f;
f = std::max (10.f, std::min (samplerate *.5f, f));
const size_t mult = fit_wave (f, samplerate);