/// <param name="soundName">The name of the sound in the mod's wave bank. This will fail if the sound doesn't exists. This is also case sensitive.</param>
publicvoidplay(stringsoundName)
{
Game1.waveBank=this.waveBank;
Game1.soundBank=this.soundBank;
if(this.song==null)return;
this.song.Play();
Game1.waveBank=this.vanillaWaveBank;
Game1.soundBank=this.vanillaSoundBank;
}
/// <summary>
/// Pauses the first instance of this sound.
/// </summary>
/// <param name="soundName"></param>
publicvoidpause(stringsoundName)
{
if(this.song==null)return;
this.song.Pause();
}
/// <summary>
/// Resume the first instance of the sound that has this name.
/// </summary>
publicvoidresume(stringsoundName)
{
if(this.song==null)return;
this.song.Resume();
}
/// <summary>
/// Stop the first instance of the sound that has this name.