projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe7cb07
)
don’t assume compilers cast the way we want.
author
Robin Gareus
<robin@gareus.org>
Sun, 26 Apr 2015 00:33:17 +0000
(
02:33
+0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 26 Apr 2015 00:48:21 +0000
(
02:48
+0200)
libs/ardour/monitor_processor.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/monitor_processor.cc
b/libs/ardour/monitor_processor.cc
index 70e4ed52c4584b3d623b3fd47c957c760e087686..38ecc14e37e3ba6230a4d97f64cddf04f99d4553 100644
(file)
--- 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();