mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 09:28:07 +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
|
#ifdef EXPERIMENTAL_PUNCH_AND_ROLL
|
||||||
void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
||||||
{
|
{
|
||||||
|
static const auto url =
|
||||||
|
wxT("Punch_and_Roll_Record#Using_Punch_and_Roll_Record");
|
||||||
|
|
||||||
if (gAudioIO->IsBusy())
|
if (gAudioIO->IsBusy())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -8538,7 +8541,7 @@ void AudacityProject::OnPunchAndRoll(const CommandContext &WXUNUSED(context))
|
|||||||
? _("Please select in a stereo track.")
|
? _("Please select in a stereo track.")
|
||||||
: wxString::Format(
|
: wxString::Format(
|
||||||
_("Please select at least %d channels."), recordingChannels);
|
_("Please select at least %d channels."), recordingChannels);
|
||||||
AudacityMessageBox(message);
|
ShowErrorDialog(this, _("Error"), message, url);
|
||||||
return;
|
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.
|
// 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) {
|
if (!wt->GetClipAtSample(sampleCount(floor(t1 * wt->GetRate()))) || t1 ==0.0) {
|
||||||
auto message = _("Please select a time within a clip.");
|
auto message = _("Please select a time within a clip.");
|
||||||
AudacityMessageBox(message);
|
ShowErrorDialog(this, _("Error"), message, url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto endTime = wt->GetEndTime();
|
const auto endTime = wt->GetEndTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user