private void Analyze() { while (analyzer.MoreSamplesAvailable) { foreach (var dtmf in analyzer.AnalyzeNextBlock()) { OnDtmfDetected?.Invoke(dtmf); } } }