don’t assume compilers cast the way we want.
authorRobin Gareus <robin@gareus.org>
Sun, 26 Apr 2015 00:33:17 +0000 (02:33 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 26 Apr 2015 00:48:21 +0000 (02:48 +0200)
libs/ardour/monitor_processor.cc

index 70e4ed52c4584b3d623b3fd47c957c760e087686..38ecc14e37e3ba6230a4d97f64cddf04f99d4553 100644 (file)
@@ -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();