mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
don’t assume compilers cast the way we want.
This commit is contained in:
parent
fe7cb07c7f
commit
f9b364c515
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue