Exemplo n.º 1
0
		public void Stop()
		{
			this.mSong = null;
			this.mIsPlaying = false;
			this.mSongQueuePosition = -1;
			RoomMusicController.mBroadcastNeeded = true;
		}
Exemplo 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;
		}
Exemplo 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)MercuryEnvironment.GetUnixTimestamp();
			RoomMusicController.mBroadcastNeeded = true;
		}