I had in my game sounds and background music played with SoundEffectInstance, but sometimes weird bugs appeared, specially when using SoundEffects.Play and SoundEffects.Stop combined immediately, step-by-step. So, I decided to play my long music with Media Player, as recommended. Unfortunatelly, when I loop my background music, there is delay about 1 second between repeats. This is not acceptable.
Song song = CACHED_MUSIC[musicName]; MediaPlayer.Play(song); MediaPlayer.IsRepeating = isLooped;
I set in MGCB processor Song for music and SoundEffect for sounds. Any solutions ? Maybe I should go back with SoundEffects - there was no delay on looping but other tricky bugs…