[Ardour-Dev] 2.8.x export code question
John Rigg
ardev3 at jrigg.co.uk
Thu Sep 6 11:11:42 PDT 2012
I'm going through the 2.0-ongoing export code to see if I can
work out why the output file gets truncated when exporting
with SRC.
In libs/ardour/session_export.cc there is this snippet of code
starting at line 258 (in AudioExportSpecification::prepare):
pos = start_frame;
end_frame = end_frame;
total_frames = end_frame - start_frame;
running = true;
do_freewheel = false; /* force a call to ::prepare_to_export() before proceeding to normal operation */
Probably a stupid question, but why total_frames = end_frame - start_frame
and not total_frames = end_frame - start_frame + 1 ?
Does the exported region not include both the start_frame and
end_frame?
John
More information about the Ardour-Dev
mailing list