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