From f9b364c51550686deb879772673c4d6afd01cec4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 26 Apr 2015 02:33:17 +0200 Subject: don’t assume compilers cast the way we want. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ardour/monitor_processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/monitor_processor.cc') diff --git a/libs/ardour/monitor_processor.cc b/libs/ardour/monitor_processor.cc index 70e4ed52c4..38ecc14e37 100644 --- a/libs/ardour/monitor_processor.cc +++ b/libs/ardour/monitor_processor.cc @@ -312,7 +312,7 @@ MonitorProcessor::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t / /* chn is now the number of channels, use as a scaling factor when mixing */ - gain_t scale = 1.0/chn; + gain_t scale = 1.f / (float)chn; BufferSet::audio_iterator b = bufs.audio_begin(); AudioBuffer& ab (*b); Sample* buf = ab.data(); -- cgit v1.2.3