From 48329f8d6ee89480f93747f08603c7aed4d07f36 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 18 Jun 2016 11:36:13 +0100 Subject: Make sure MSVC knows which version of 'floor()' we want --- libs/ardour/resampled_source.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/resampled_source.cc') diff --git a/libs/ardour/resampled_source.cc b/libs/ardour/resampled_source.cc index ca59d20b58..04eecf0dee 100644 --- a/libs/ardour/resampled_source.cc +++ b/libs/ardour/resampled_source.cc @@ -73,7 +73,7 @@ framecnt_t ResampledImportableSource::read (Sample* output, framecnt_t nframes) { int err; - size_t bs = floor (blocksize / source->channels()) * source->channels(); + size_t bs = floor ((float)(blocksize / source->channels())) * source->channels(); /* If the input buffer is empty, refill it. */ if (_src_data.input_frames == 0) { -- cgit v1.2.3