mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
Links to help for errors in usage of P&R
This commit is contained in:
parent
76282a1da1
commit
46fb2960c0
@ -8518,6 +8518,9 @@ int AudacityProject::DialogForLabelName(const wxString& initialValue, wxString&
|
||||
#ifdef EXPERIMENTAL_PUNCH_AND_ROLL
|
||||
void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
||||
{
|
||||
static const auto url =
|
||||
wxT("Punch_and_Roll_Record#Using_Punch_and_Roll_Record");
|
||||
|
||||
if (gAudioIO->IsBusy())
|
||||
return;
|
||||
|
||||
@ -8538,7 +8541,7 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
||||
? _("Please select in a stereo track.")
|
||||
: wxString::Format(
|
||||
_("Please select at least %d channels."), recordingChannels);
|
||||
AudacityMessageBox(message);
|
||||
ShowErrorDialog(this, _("Error"), message, url);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -8554,7 +8557,7 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
||||
// that case, so a normal record, not a punch and roll, is called for.
|
||||
if (!wt->GetClipAtSample(sampleCount(floor(t1 * wt->GetRate()))) || t1 ==0.0) {
|
||||
auto message = _("Please select a time within a clip.");
|
||||
AudacityMessageBox(message);
|
||||
ShowErrorDialog(this, _("Error"), message, url);
|
||||
return;
|
||||
}
|
||||
const auto endTime = wt->GetEndTime();
|
||||
|
Loading…
x
Reference in New Issue
Block a user