mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-16 16:47:41 +02:00
Bug 2128 - (Residual) Better error messages for mismatched rates.
This commit is contained in:
parent
23f5811061
commit
ef659ed822
@ -488,9 +488,9 @@ void ProjectAudioManager::OnRecord(bool altAppearance)
|
||||
const bool allSameRate{ selectedTracks.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"),
|
||||
XO("Unfitting track selection"),
|
||||
XO("Mismatched Sampling Rates"),
|
||||
wxICON_ERROR | wxCENTRE);
|
||||
|
||||
return;
|
||||
@ -508,11 +508,11 @@ void ProjectAudioManager::OnRecord(bool altAppearance)
|
||||
}
|
||||
else {
|
||||
if (numberOfSelected > 0 && rateOfSelected != options.rate) {
|
||||
AudacityMessageBox(XO("TRACK SELECTION PROBLEM:\n"
|
||||
"Not enough tracks are selected for recording on non-project rate.\n"
|
||||
"(keep in mind that Audacity doesn\'t allow "
|
||||
"using only one channel of a stereo track)"),
|
||||
XO("Insufficient track selection"),
|
||||
AudacityMessageBox(XO(
|
||||
"Too few tracks are selected for recording at this sample rate.\n"
|
||||
"(Audacity requires two channels at the same sample rate for\n"
|
||||
"each stereo track)"),
|
||||
XO("Too Few Compatible Tracks Selected"),
|
||||
wxICON_ERROR | wxCENTRE);
|
||||
|
||||
return;
|
||||
|
@ -293,9 +293,9 @@ void OnTimerRecord(const CommandContext &context)
|
||||
const bool allSameRate{ selectedTracks.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"),
|
||||
XO("Unfitting track selection"),
|
||||
XO("Mismatched Sampling Rates"),
|
||||
wxICON_ERROR | wxCENTRE);
|
||||
|
||||
return;
|
||||
@ -413,9 +413,9 @@ void OnPunchAndRoll(const CommandContext &context)
|
||||
const bool allSameRate{ selectedTracks.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"),
|
||||
XO("Unfitting track selection"),
|
||||
XO("Mismatched Sampling Rates"),
|
||||
wxICON_ERROR | wxCENTRE);
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user