I updated to MonoGame 3.5 and now none of my sounds work. There are no errors but calling the Play() method doesn’t do anything.
// I have a sound dictionary like so…
sounds = new Dictionary<string, SoundEffect>();
sounds.Add(“Back”, content.Load(“Audio\Back”));
sounds.Add(“BeeDrop”, content.Load(“Audio\BeeDrop”));
sounds.Add(“BombEmpty”, content.Load(“Audio\BombEmpty”));
// Then I call a playCue method that passes in the name of the sound effect to play…
public void PlayCue(string cueName)
{
SoundEffectInstance newInstance = sounds[cueName].CreateInstance();
newInstance.Volume = Program.CurrentMusic.SoundEffectVolumeLevel;
newInstance.Play();
}
There isn’t an error or anything, it just doesn’t play. The sound effects it points to are the xnb files.
Any ideas what I can do to make sounds work again?