summaryrefslogtreecommitdiff
path: root/libs/ardour/export_channel.cc
diff options
context:
space:
mode:
authorNils Philippsen <nils@tiptoe.de>2013-12-10 16:50:35 +0100
committerNils Philippsen <nils@tiptoe.de>2013-12-10 23:07:47 +0100
commit27a3f2837a28862fa9fab7714a96975dc8540ac9 (patch)
treef425c6e4a2298cd18c7b862c010c746848dcb5e8 /libs/ardour/export_channel.cc
parent63f8d282bdb25b1777d11578d4b9463ba078a872 (diff)
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.
Diffstat (limited to 'libs/ardour/export_channel.cc')
-rw-r--r--libs/ardour/export_channel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/export_channel.cc b/libs/ardour/export_channel.cc
index 82e5d80244..c67f33bb91 100644
--- a/libs/ardour/export_channel.cc
+++ b/libs/ardour/export_channel.cc
@@ -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: