1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-17 17:17:40 +02:00

Bug 2128 - (Residual) Better error messages for mismatched rates.

This commit is contained in:
James Crook 2020-04-20 20:45:42 +01:00
parent 23f5811061
commit ef659ed822
2 changed files with 11 additions and 11 deletions

View File

@ -488,9 +488,9 @@ void ProjectAudioManager::OnRecord(bool altAppearance)
const bool allSameRate{ selectedTracks.allSameRate }; const bool allSameRate{ selectedTracks.allSameRate };
if (!allSameRate) { if (!allSameRate) {
AudacityMessageBox(XO("TRACK SELECTION PROBLEM:\nthe tracks selected " AudacityMessageBox(XO("The tracks selected "
"for recording must all have the same sampling rate"), "for recording must all have the same sampling rate"),
XO("Unfitting track selection"), XO("Mismatched Sampling Rates"),
wxICON_ERROR | wxCENTRE); wxICON_ERROR | wxCENTRE);
return; return;
@ -508,11 +508,11 @@ void ProjectAudioManager::OnRecord(bool altAppearance)
} }
else { else {
if (numberOfSelected > 0 && rateOfSelected != options.rate) { if (numberOfSelected > 0 && rateOfSelected != options.rate) {
AudacityMessageBox(XO("TRACK SELECTION PROBLEM:\n" AudacityMessageBox(XO(
"Not enough tracks are selected for recording on non-project rate.\n" "Too few tracks are selected for recording at this sample rate.\n"
"(keep in mind that Audacity doesn\'t allow " "(Audacity requires two channels at the same sample rate for\n"
"using only one channel of a stereo track)"), "each stereo track)"),
XO("Insufficient track selection"), XO("Too Few Compatible Tracks Selected"),
wxICON_ERROR | wxCENTRE); wxICON_ERROR | wxCENTRE);
return; return;

View File

@ -293,9 +293,9 @@ void OnTimerRecord(const CommandContext &context)
const bool allSameRate{ selectedTracks.allSameRate }; const bool allSameRate{ selectedTracks.allSameRate };
if (!allSameRate) { if (!allSameRate) {
AudacityMessageBox(XO("TRACK SELECTION PROBLEM:\nthe tracks selected " AudacityMessageBox(XO("The tracks selected "
"for recording must all have the same sampling rate"), "for recording must all have the same sampling rate"),
XO("Unfitting track selection"), XO("Mismatched Sampling Rates"),
wxICON_ERROR | wxCENTRE); wxICON_ERROR | wxCENTRE);
return; return;
@ -413,9 +413,9 @@ void OnPunchAndRoll(const CommandContext &context)
const bool allSameRate{ selectedTracks.allSameRate }; const bool allSameRate{ selectedTracks.allSameRate };
if (!allSameRate) { if (!allSameRate) {
AudacityMessageBox(XO("TRACK SELECTION PROBLEM:\nthe tracks selected " AudacityMessageBox(XO("The tracks selected "
"for recording must all have the same sampling rate"), "for recording must all have the same sampling rate"),
XO("Unfitting track selection"), XO("Mismatched Sampling Rates"),
wxICON_ERROR | wxCENTRE); wxICON_ERROR | wxCENTRE);
return; return;