mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue