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(); }
private async Task GetSongs() { var result = await _songService.GetPlayList(CurrentChannel.Id); SetPlayList(result); if (PlayList.Count > 0) { CurrentSong = PlayList.Dequeue(); } }
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(); } }
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); }