Make sure MSVC knows which version of 'floor()' we want
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 18 Jun 2016 10:36:13 +0000 (11:36 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 18 Jun 2016 10:36:13 +0000 (11:36 +0100)
libs/ardour/resampled_source.cc

index ca59d20b58b8f00c6be7477f230d64a6d5e245b6..04eecf0dee9eebadd93a1991aff0e5fbe5d09694 100644 (file)
@@ -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) {