Looping a Sound
This section demonstrates how to loop a sound.
The code in this topic shows you the technique for looping a sound. You can download a complete code sample for this topic, including full source code and any additional supporting files required by the sample.
Simple Sound Looping
Not much extra code is needed to continiously loop a sound file in your game. Since the SoundEffect class does not provide looping support, you'll need to allocate a SoundEffectInstance object. The following procedure builds on the sample code provided in the Playing a Sound topic.