projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca3c67
)
Make sure MSVC knows which version of 'floor()' we want
author
John Emmas
<johne53@tiscali.co.uk>
Sat, 18 Jun 2016 10:36:13 +0000
(11:36 +0100)
committer
John Emmas
<johne53@tiscali.co.uk>
Sat, 18 Jun 2016 10:36:13 +0000
(11:36 +0100)
libs/ardour/resampled_source.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/resampled_source.cc
b/libs/ardour/resampled_source.cc
index ca59d20b58b8f00c6be7477f230d64a6d5e245b6..04eecf0dee9eebadd93a1991aff0e5fbe5d09694 100644
(file)
--- 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) {