Ejemplo n.º 1
0
        //-----------------------------------------------------------------------------------------------
        /// <summary>
        /// Play a song
        /// </summary>
        /// <param name="name">The name of the song to play</param>
        /// <returns>Returns an IVarmintAudioInstance from the played sound</returns>
        //-----------------------------------------------------------------------------------------------
        private IVarmintAudioInstance PlaySong(string name)
        {
            var instance = new VarmintSongInstance(_songsByName[name], this);

            CurrentSong = instance;
            instance.Play();
            return(instance);
        }
Ejemplo n.º 2
0
 internal void Update(IVarmintAudioInstance instance, GameTime gameTime)
 {
     Instance = instance;
     Update(gameTime);
 }