mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
UI updates for detailed export state.
This commit is contained in:
parent
c00a07e811
commit
d56a44bf36
3 changed files with 62 additions and 22 deletions
|
|
@ -121,12 +121,19 @@ static int export_session (Session *session,
|
|||
// TODO trap SIGINT -> status->abort();
|
||||
|
||||
while (status->running) {
|
||||
if (status->normalizing) {
|
||||
double progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
|
||||
double progress = 0.0;
|
||||
switch (status->active_job) {
|
||||
case ExportStatus::Normalizing:
|
||||
progress = ((float) status->current_normalize_cycle) / status->total_normalize_cycles;
|
||||
printf ("* Normalizing %.1f%% \r", 100. * progress); fflush (stdout);
|
||||
} else {
|
||||
double progress = ((float) status->processed_frames_current_timespan) / status->total_frames_current_timespan;
|
||||
break;
|
||||
case ExportStatus::Exporting:
|
||||
progress = ((float) status->processed_frames_current_timespan) / status->total_frames_current_timespan;
|
||||
printf ("* Exporting Audio %.1f%% \r", 100. * progress); fflush (stdout);
|
||||
break;
|
||||
default:
|
||||
printf ("* Exporting... \r");
|
||||
break;
|
||||
}
|
||||
Glib::usleep (1000000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue