diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-26 02:33:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-26 02:48:21 +0200 |
commit | f9b364c51550686deb879772673c4d6afd01cec4 (patch) | |
tree | 154bf0f994a25b0910b4a66ce818a62d507c7dd2 /libs/ardour/monitor_processor.cc | |
parent | fe7cb07c7f89a7485857c97f731e339cc035b612 (diff) |
don’t assume compilers cast the way we want.
Diffstat (limited to 'libs/ardour/monitor_processor.cc')
-rw-r--r-- | libs/ardour/monitor_processor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |