Пример #1
0
        public async Task ApplyEqualizer(AVPlayerItem item)
        {
#if iPod
            var curEq = await Equalizer.GetPreset(AudioPlayer.Shared.CurrentSong) ?? await Equalizer.GetDefault(AudioPlayer.Shared.CurrentSong) ?? Equalizer.Shared.CurrentPreset;

            Equalizer.Shared.ApplyPreset(curEq);
            Equalizer.Shared.CurEqId = curEq.GlobalId;
#endif
            ApplyEqualizer(Equalizer.Shared.Bands, item);
        }
        async void SetSourc()
        {
#if iPod
            source.Default = await Equalizer.GetDefault(currentItem) ?? Equalizer.Shared.CurrentPreset;

            source.Current = currentItem == null ? Equalizer.Shared.CurrentPreset : await Equalizer.GetPreset(currentItem);
                        #else
            source.Current = Equalizer.Shared.CurrentPreset;
#endif
            TableView.ReloadData();
        }