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:
parent
15adbf54e8
commit
314d210f2b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user