//----------------------------------------------------------------------------------------------- /// <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); }
internal void Update(IVarmintAudioInstance instance, GameTime gameTime) { Instance = instance; Update(gameTime); }