Ejemplo n.º 1
0
        public static void Play(Song song)
        {
            if (song != null)
            {
                if (_song != null)
                {
                    _song.Dispose();
                    _song = null;
                }

                _song        = song;
                _song.Volume = _volume;
                _song.Loop   = _looping;
                _song.Play();
                _mediaState = MediaState.Playing;
            }
        }