Example #1
0
 public bool HasProfileData(EFFTProfileType profileType)
 {
     if (GetProfileData(profileType).Length == 2)
     {
         return(false);
     }
     return(true);
 }
Example #2
0
    public void SetProfileData(float[] spectrumPoints, EFFTProfileType profileType)
    {
        int profileId  = (int)profileType;
        int pointCount = spectrumPoints.Length;

        fftProfileData[profileId] = new float[pointCount];
        for (int i = 0; i < pointCount; i++)
        {
            fftProfileData[profileId][i] = spectrumPoints[i];
        }
    }
Example #3
0
    public float[] GetProfileData(EFFTProfileType profileType)
    {
        int profileId = (int)profileType;

        float[] spectrumPoints;

        if (fftProfileData[profileId] == null)
        {
            spectrumPoints = new float[] { 0, 0 };
        }
        else
        {
            int pointCount = fftProfileData[profileId].Length;
            spectrumPoints = new float[pointCount];
            for (int i = 0; i < pointCount; i++)
            {
                spectrumPoints[i] = fftProfileData[profileId][i];
            }
        }
        return(spectrumPoints);
    }
Example #4
0
 void SwitchToProfile(EFFTProfileType newProfile)
 {
     activeProfileType = newProfile;
     profileFFTVis.DisplaySpectrumData(FFTProfiles.Instance.GetProfileData(activeProfileType));
     MicMonitor.Instance.fftSampleDataLength = FFTProfiles.Instance.GetProfileData(activeProfileType).Length;
 }