From 30b087ab3d28f1585987fa3f6ae006562ae192e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 12:39:17 -0400 Subject: globally change all use of "frame" to refer to audio into "sample". Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible --- session_utils/export.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'session_utils/export.cc') diff --git a/session_utils/export.cc b/session_utils/export.cc index eae41fced8..5b89434cb6 100644 --- a/session_utils/export.cc +++ b/session_utils/export.cc @@ -90,13 +90,13 @@ static int export_session (Session *session, " " " " " " -" " +" " " " " " " " " " " " -" " +" " " " " " " " @@ -107,9 +107,9 @@ static int export_session (Session *session, boost::shared_ptr fmp = session->get_export_handler()->add_format(*tree.root()); /* set up range */ - framepos_t start, end; - start = session->current_start_frame(); - end = session->current_end_frame(); + samplepos_t start, end; + start = session->current_start_sample(); + end = session->current_end_sample(); tsp->set_range (start, end); tsp->set_range_id ("session"); @@ -172,7 +172,7 @@ static int export_session (Session *session, printf ("* Normalizing %.1f%% \r", 100. * progress); fflush (stdout); break; case ExportStatus::Exporting: - progress = ((float) status->processed_frames_current_timespan) / status->total_frames_current_timespan; + progress = ((float) status->processed_samples_current_timespan) / status->total_samples_current_timespan; printf ("* Exporting Audio %.1f%% \r", 100. * progress); fflush (stdout); break; default: @@ -310,7 +310,7 @@ int main (int argc, char* argv[]) s = SessionUtils::load_session (argv[optind], argv[optind+1]); if (settings._samplerate == 0) { - settings._samplerate = s->nominal_frame_rate (); + settings._samplerate = s->nominal_sample_rate (); } export_session (s, outfile, settings); -- cgit v1.2.3