Esempio n. 1
0
    private object SetSpectrumGain(float value)
    {
        var intValue = (int)value;

        if (intValue < -10)
        {
            intValue = -10;
        }
        else if (intValue > 120)
        {
            intValue = 120;
        }
        _spectrumGain          = intValue;
        _spectrumAnalyzer.gain = intValue;
        PlayerPrefHelper.SetSpectrumGain(intValue);
        _spectrumGainData.text = intValue.ToString();
        return(true);
    }