summaryrefslogtreecommitdiff
path: root/libs/ardour/export_graph_builder.cc
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2016-02-17 12:17:05 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2016-02-17 12:17:05 +0000
commit58f7a1128789a810e52abe066616fcfec719bdfd (patch)
tree60789ca507aca6a79d34f1dec4bae345c637c106 /libs/ardour/export_graph_builder.cc
parentf8bc9c66a5ac60a43f50402fa6337ac26268a943 (diff)
Make sure that MSVC knows which version of 'ceil()' we want
(it doesn't have a version that understands 'framecnt_t')
Diffstat (limited to 'libs/ardour/export_graph_builder.cc')
-rw-r--r--libs/ardour/export_graph_builder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index 58eecff899..a15a48a350 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -314,7 +314,7 @@ ExportGraphBuilder::SFC::SFC (ExportGraphBuilder &parent, FileSpec const & new_c
max_frames = min ((framecnt_t) 8192 * channels, max ((framecnt_t) 4096 * channels, max_frames));
chunker.reset (new Chunker<Sample> (max_frames));
analyser.reset (new Analyser (config.format->sample_rate(), channels, max_frames,
- (framecnt_t) ceil (duration * config.format->sample_rate () / sample_rate)));
+ (framecnt_t) ceil (duration * config.format->sample_rate () / (double) sample_rate)));
chunker->add_output (analyser);
parent.add_analyser (config.filename->get_path (config.format), analyser);
}