mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Auditioner, silence buffer at end.
This commit is contained in:
parent
c63f7f775d
commit
edff34a59b
1 changed files with 8 additions and 1 deletions
|
|
@ -425,13 +425,20 @@ Auditioner::play_audition (samplecnt_t nframes)
|
|||
/* process audio */
|
||||
this_nframes = min (nframes, length - current_sample + _import_position);
|
||||
|
||||
if ((ret = roll (this_nframes, current_sample, current_sample + nframes, false, need_butler)) != 0) {
|
||||
if (this_nframes > 0 && 0 != (ret = roll (this_nframes, current_sample, current_sample + this_nframes, false, need_butler))) {
|
||||
silence (nframes);
|
||||
return ret;
|
||||
}
|
||||
|
||||
current_sample += this_nframes;
|
||||
|
||||
if (this_nframes < nframes) {
|
||||
if (this_nframes > 0) {
|
||||
_session.engine().split_cycle (this_nframes);
|
||||
}
|
||||
silence (nframes - this_nframes);
|
||||
}
|
||||
|
||||
} else {
|
||||
silence (nframes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue