Repository navigation
Export loop region - #9489
Export loop region#9489
Conversation
cab7426 to
9de0312
Compare
luapmartin
left a comment
There was a problem hiding this comment.
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
| 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; | ||
| } |
There was a problem hiding this comment.
isValid check is nice but maybe isActive too?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
@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)
There was a problem hiding this comment.
Surprisingly, export works as expected without any change, merging
There was a problem hiding this comment.
@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."
Resolves: #9468
Resolves: #9128
Recommended:
QA: