Ejemplo n.º 1
0
 public PlayInfo(Command_e command, DDMusic music, bool once, bool resume, double volumeRate)
 {
     this.Command    = command;
     this.Music      = music;
     this.Once       = once;
     this.Resume     = resume;
     this.VolumeRate = volumeRate;
 }
Ejemplo n.º 2
0
        public static void Pause()
        {
            CurrPauseMusic  = CurrDestMusic;
            CurrPauseOnce   = CurrDestOnce;
            CurrPauseVolume = CurrDestVolume;

            Stop();
        }
Ejemplo n.º 3
0
		public static void Stop()
		{
			if (CurrDestMusic == null)
				return;

			PlayInfos.Enqueue(new PlayInfo(PlayInfo.Command_e.VOLUME_RATE, CurrDestMusic, false, false, 0.0));
			PlayInfos.Enqueue(null);
			PlayInfos.Enqueue(null);
			PlayInfos.Enqueue(null);
			PlayInfos.Enqueue(new PlayInfo(PlayInfo.Command_e.STOP, CurrDestMusic, false, false, 0.0));
			PlayInfos.Enqueue(null);
			PlayInfos.Enqueue(null);
			PlayInfos.Enqueue(null);

			CurrDestMusic = null;
			CurrDestOnce = false;
			CurrDestVolume = 0.0;
		}
Ejemplo n.º 4
0
 public static void Add(DDMusic music)
 {
     Musics.Add(music);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 音楽リソースを追加する。
 /// </summary>
 /// <param name="music">音楽リソース</param>
 public static void Add(DDMusic music)
 {
     Add(() => music.Touch());
 }