Exemplo n.º 1
0
        private async Task PlayNext(bool isNormalEnd = false)
        {
            var playList = isNormalEnd
                ? await _songService.NormalEnd(CurrentSong.SID, CurrentChannel.Id)
                : await _songService.Skip(CurrentSong.SID, CurrentChannel.Id);

            SetPlayList(playList);
            CurrentSong = PlayList.Dequeue();
        }
Exemplo n.º 2
0
        private async Task GetSongs()
        {
            var result = await _songService.GetPlayList(CurrentChannel.Id);

            SetPlayList(result);
            if (PlayList.Count > 0)
            {
                CurrentSong = PlayList.Dequeue();
            }
        }
Exemplo n.º 3
0
 private async Task Ban()
 {
     if (PlayList.Count > 0)
     {
         CurrentSong = PlayList.Dequeue();
         SetPlayList(await _songService.Ban(CurrentSong.SID, CurrentChannel.Id));
     }
     else
     {
         SetPlayList(await _songService.Ban(CurrentSong.SID, CurrentChannel.Id));
         CurrentSong = PlayList.Dequeue();
     }
 }
Exemplo n.º 4
0
            public double Volume;             // 0.0 - 1.0, def: 0.5

            public void Dispose()             // Codevil の UnloadMusic()
            {
                // reset
                {
                    while (1 <= PlayList.Count)
                    {
                        PlayList.Dequeue().Dispose();
                    }

                    CurrDestMusic           = null;
                    CurrDestMusicVolumeRate = 0.0;
                }

                GameSound.UnloadSound(this.Handle);
            }