mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-20 12:26:07 +01:00
Add a safeguard which will eliminate false disk underruns when punching
in. Not a complete fix though, this is more a workaround. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2169 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
100bd1328b
commit
91e8cfbeb1
1 changed files with 6 additions and 0 deletions
|
|
@ -555,6 +555,12 @@ AudioDiskstream::process (nframes_t transport_frame, nframes_t nframes, nframes_
|
|||
if (nominally_recording || (_session.get_record_enabled() && Config->get_punch_in())) {
|
||||
OverlapType ot;
|
||||
|
||||
// Safeguard against situations where process() goes haywire when autopunching and last_recordable_frame < first_recordable_frame
|
||||
if (last_recordable_frame < first_recordable_frame) {
|
||||
last_recordable_frame = max_frames;
|
||||
|
||||
}
|
||||
|
||||
ot = coverage (first_recordable_frame, last_recordable_frame, transport_frame, transport_frame + nframes);
|
||||
|
||||
switch (ot) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue