Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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));
        }
    }