mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-17 08:01:12 +02:00
bug 2290: Add error message
See https://bugzilla.audacityteam.org/show_bug.cgi?id=2290#c9
This commit is contained in:
@@ -133,8 +133,13 @@ unsigned EffectDtmf::GetAudioOutCount()
|
|||||||
|
|
||||||
bool EffectDtmf::ProcessInitialize(sampleCount WXUNUSED(totalLen), ChannelNames WXUNUSED(chanMap))
|
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;
|
return false;
|
||||||
|
}
|
||||||
double duration = GetDuration();
|
double duration = GetDuration();
|
||||||
|
|
||||||
// all dtmf sequence durations in samples from seconds
|
// all dtmf sequence durations in samples from seconds
|
||||||
|
Reference in New Issue
Block a user