Ejemplo n.º 1
0
 public void Stop()
 {
     this.mSong              = null;
     this.mIsPlaying         = false;
     this.mSongQueuePosition = -1;
     RoomMusicController.mBroadcastNeeded = true;
 }
Ejemplo n.º 2
0
 internal void Destroy()
 {
     if (this.mLoadedDisks != null)
     {
         this.mLoadedDisks.Clear();
     }
     if (this.mPlaylist != null)
     {
         this.mPlaylist.Clear();
     }
     this.mPlaylist       = null;
     this.mLoadedDisks    = null;
     this.mSong           = null;
     this.mRoomOutputItem = null;
 }
Ejemplo n.º 3
0
 public void PlaySong()
 {
     if (this.mSongQueuePosition >= this.mPlaylist.Count)
     {
         this.mSongQueuePosition = 0;
     }
     if (this.mPlaylist.Count == 0)
     {
         this.Stop();
         return;
     }
     this.mSong = this.mPlaylist[this.mSongQueuePosition];
     this.mStartedPlayingTimestamp        = (double)CyberEnvironment.GetUnixTimestamp();
     RoomMusicController.mBroadcastNeeded = true;
 }
Ejemplo n.º 4
0
        public SongItem RemoveDisk(int PlaylistIndex)
        {
            SongInstance songInstance = null;

            lock (this.mPlaylist)
            {
                if (!this.mPlaylist.ContainsKey(PlaylistIndex))
                {
                    return(null);
                }
                songInstance = this.mPlaylist[PlaylistIndex];
                this.mPlaylist.Remove(PlaylistIndex);
            }
            lock (this.mLoadedDisks)
            {
                this.mLoadedDisks.Remove(songInstance.DiskItem.itemID);
            }
            this.RepairPlaylist();
            if (PlaylistIndex == this.mSongQueuePosition)
            {
                this.PlaySong();
            }
            return(songInstance.DiskItem);
        }
Ejemplo n.º 5
0
		internal void Destroy()
		{
			if (this.mLoadedDisks != null)
			{
				this.mLoadedDisks.Clear();
			}
			if (this.mPlaylist != null)
			{
				this.mPlaylist.Clear();
			}
			this.mPlaylist = null;
			this.mLoadedDisks = null;
			this.mSong = null;
			this.mRoomOutputItem = null;
		}
Ejemplo n.º 6
0
		public void Stop()
		{
			this.mSong = null;
			this.mIsPlaying = false;
			this.mSongQueuePosition = -1;
			RoomMusicController.mBroadcastNeeded = true;
		}
Ejemplo n.º 7
0
		public void PlaySong()
		{
			if (this.mSongQueuePosition >= this.mPlaylist.Count)
			{
				this.mSongQueuePosition = 0;
			}
			if (this.mPlaylist.Count == 0)
			{
				this.Stop();
				return;
			}
			this.mSong = this.mPlaylist[this.mSongQueuePosition];
			this.mStartedPlayingTimestamp = (double)CyberEnvironment.GetUnixTimestamp();
			RoomMusicController.mBroadcastNeeded = true;
		}