13
0

fix region export with fades and gain.

region.read_at() is additive - it assumes the buffer may already contain
data from from lower regions.
This commit is contained in:
Robin Gareus 2014-05-26 21:30:58 +02:00
parent 15adbf54e8
commit 314d210f2b

View File

@ -187,6 +187,7 @@ RegionExportChannelFactory::update_buffers (framecnt_t frames)
assert (mixdown_buffer && gain_buffer);
for (size_t channel = 0; channel < n_channels; ++channel) {
memset (mixdown_buffer.get(), 0, sizeof (Sample) * frames);
buffers.get_audio (channel).silence(frames);
region.read_at (buffers.get_audio (channel).data(), mixdown_buffer.get(), gain_buffer.get(), position, frames, channel);
}
break;