public List <Bands> SetEqualizer(int preset)
        {
            var result = new List <Bands>();

            if (mediaPlayer == null)
            {
                return(result);
            }
            else
            {
                equalizer.UsePreset((short)preset);
                int numberFrequencyBands = equalizer.NumberOfBands;
                //string lowerEqualizerBandLevel = equalizer.GetBandLevelRange()[0] / 100 + "dB";
                short lowerEqualizer          = equalizer.GetBandLevelRange()[0];
                short upperEqualizerBandLevel = equalizer.GetBandLevelRange()[1];
                //string upperEqualizerBandLevel = equalizer.GetBandLevelRange()[1] / 100 + "dB";
                int maxValue = (upperEqualizerBandLevel - lowerEqualizer);
                for (short i = 0; i < numberFrequencyBands; i++)
                {
                    short  equalizerBandIndex = i;
                    string setFrequency       = equalizer.GetCenterFreq(equalizerBandIndex) / 1000 + "Hz"; //// 60-14000Hz
                    Console.WriteLine(equalizerBandIndex);
                    int   value = equalizer.GetBandLevel(equalizerBandIndex) - lowerEqualizer;             // init value
                    Bands bands = new Bands(setFrequency, equalizerBandIndex, value, maxValue);
                    result.Add(bands);
                }
                return(result);
            }
        }