Ejemplo n.º 1
0
        private static bool HandleExcistingPlay(InMusicGroup musicGroup, ref PlayingMusicInfo playingInfo)
        {
            if (playingInfo.State == MusicState.Playing)
            {
                StopPlayersNow(musicGroup);
            }
            else if (playingInfo.State == MusicState.Paused)
            {
                UnpausePlayers(musicGroup);
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        private static bool HandleExcistingPlay(InMusicGroup musicGroup, ref PlayingMusicInfo playingInfo)
        {
            if (playingInfo.State == MusicState.Playing)
            {
                StopPlayersNow(musicGroup);
            }
            else if (playingInfo.State == MusicState.Paused)
            {
                UnpausePlayers(musicGroup);
                return true;
            }

            return false;
        }