public AudioBand(int bw, int c, AudioWatcher.Bands b) { bandWidth = bw; channel = c; band = b; specMeanHistory = new float[specMeanHistoryLength]; specMedianHistory = new float[specMedianHistoryLength]; spectrum = new float[bandWidth]; output = new float[bandWidth]; Reset(); }
void InvokeEvents(AudioWatcher.Bands b, AudioWatcher.EventTypes e) { if (!audioWatcher.EventIsActive(b, channel, e)) { return; } foreach (OnEventTrigger f in onEventTrigger) { f.Invoke(audioWatcher.GetBand(b, channel)); } }