1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-23 15:50:05 +02:00

bug 2290: Add error message

See https://bugzilla.audacityteam.org/show_bug.cgi?id=2290#c9
This commit is contained in:
SteveDaulton 2020-01-23 12:59:31 +00:00
parent 10eb5864ac
commit 9a0ee24c5c

View File

@ -133,8 +133,13 @@ unsigned EffectDtmf::GetAudioOutCount()
bool EffectDtmf::ProcessInitialize(sampleCount WXUNUSED(totalLen), ChannelNames WXUNUSED(chanMap))
{
if (dtmfNTones <= 0) // Bail if no DTFM sequence.
if (dtmfNTones <= 0) { // Bail if no DTFM sequence.
::Effect::MessageBox(
XO("DTMF sequence empty.\nCheck ALL settings for this effect."),
wxICON_ERROR );
return false;
}
double duration = GetDuration();
// all dtmf sequence durations in samples from seconds