mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 09:01:12 +01:00
bug 2290: Bail if no DTMF sequence
This commit is contained in:
@@ -133,6 +133,8 @@ 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.
|
||||||
|
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