Example #1
0
        public float[] getSpectrum(int size, int channel, DSP_FFT fft)
        {
            float[] data = new float[size];

            switch (fft)
            {
            case DSP_FFT.RECT:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.RECT);
                break;

            case DSP_FFT.BLACKMAN:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.BLACKMAN);
                break;

            case DSP_FFT.BLACKMANHARRIS:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.BLACKMANHARRIS);
                break;

            case DSP_FFT.HAMMING:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.HAMMING);
                break;

            case DSP_FFT.HANNING:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.HANNING);
                break;

            case DSP_FFT.TRIANGLE:
                m_system.getSpectrum(data, size, channel, FMOD.DSP_FFT_WINDOW.TRIANGLE);
                break;
            }
            return(data);
        }
Example #2
0
 public float[] getSpectrum(int size, int channel, DSP_FFT fft)
 {
     return(new float[size]);
 }