mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
use std::fill_n to fill gain buffer with samples
Using memset fills the buffer with whatever 1.0 as a double or float has in its LSB.
This commit is contained in:
parent
63f8d282bd
commit
27a3f2837a
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ RegionExportChannelFactory::RegionExportChannelFactory (Session * session, Audio
|
|||
|
||||
mixdown_buffer.reset (new Sample [frames_per_cycle]);
|
||||
gain_buffer.reset (new Sample [frames_per_cycle]);
|
||||
memset (gain_buffer.get(), 1.0, sizeof (Sample) * frames_per_cycle);
|
||||
std::fill_n (gain_buffer.get(), frames_per_cycle, Sample (1.0));
|
||||
|
||||
break;
|
||||
case Processed:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue