Exemple #1
0
        public void ClearQueue()
        {
            Stop();

            CurrentPlaybackQueueEntryId = 0;
            PlaybackQueue.Clear();
            LookupMap.Clear();
            ApplicationSettings.PutSettingsValue(ApplicationSettings.CURRENT_TRACK_PERCENTAGE, 0.0);

            DatabaseManager.Current.ClearPlaybackQueue();
        }
        public async Task ClearQueueAsync()
        {
            if (PlaybackQueue.Count == 0)
            {
                return;
            }

            await _bgSqlService.DeleteTableAsync <QueueSong>();

            _lookupMap.Clear();
            await _dispatcher.RunAsync(
                () =>
            {
                PlaybackQueue.Clear();
                ShufflePlaybackQueue.Clear();
            });
        }