I have an array of sound effect instances in a MonoGame project that I'm testing on an API 19 Android emulator. The sound effects are loaded from a folder called "Sound" in the "Assets/Content" folder. They are all in the ".wav" format. I can't figure out how to make the sound effect play properly. The volume is set to full on the emulator and I've tested the code using XNA 4.0 for Windows Phone with no issues. How can I fix this problem?
SoundEffectInstance[] soundEffects = new SoundEffectInstance[5];
soundEffects[0] = Content.Load<SoundEffect>("Sound/1").CreateInstance();
soundEffects[0].Play(); //This should play the sound effect, but no sound comes from the emulator
Note: Even if I use the "SoundEffect" type instead, no sound is produced.
SoundEffect[] soundEffects = new SoundEffect[5];
soundEffects[0] = Content.Load<SoundEffect>("Sound/1");
soundEffects[0].Play();