Skip to content

Export loop region - #9489

Merged
grliszas14 merged 1 commit into
audacity:masterfrom
grliszas14:export_loop
Oct 13, 2025
Merged

grliszas14 merged 1 commit into
audacity:masterfrom
grliszas14:export_loop

Conversation

@grliszas14

@grliszas14 grliszas14 commented Sep 29, 2025 •

Copy link
Copy Markdown
Contributor

Resolves: #9468
Resolves: #9128

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@grliszas14
grliszas14 requested a review from kryksyh September 29, 2025 09:49

@luapmartin luapmartin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am ok with this PR but after my playback fixes we should use a playback service of some sort making sure that we would rely on it to provide the logic about what can be done or not, otherwise we are going to multiply the logic outside of playback each time we interact with playback

Comment on lines +161 to +166
if (type == ExportProcessType::AUDIO_IN_LOOP_REGION && !playback()->player()->loopRegion().isValid()) {
interactive()->error(muse::trc("export", "No loop region"),
muse::trc("export",
"Export audio in loop region requires an active loop in the project. Please go back, create a loop and try again."));
return;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isValid check is nice but maybe isActive too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmm, it's a question to designers/QA - in theory even if loop is not active, we still have loop region start and end which can be used in exporting

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luapmartin good catch!
I'd say that we should allow to export with inactive loop region, because the user already did an extra step to by selecting the export option.

Insted we should activate the loop region, so the export work as expected.
(and tweak the message a bit)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprisingly, export works as expected without any change, merging

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grliszas14 should we update that text though?

"Export audio in loop region requires an active loop in the project.
Please go back, create a loop and try again."

@grliszas14
grliszas14 merged commit ef1d7dc into audacity:master Oct 13, 2025
@grliszas14
grliszas14 deleted the export_loop branch October 13, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement export for loop region Export: when selection isn't made, the "selected audio" option should be disabled.

4 participants