How to play a background music and make it loop?
Currently I'm using this piece of code to make it play the background music:
XNA-C#
SoundEffect bgEffect;
bgEffect = Content.Load<SoundEffect>("EpicUnease");
bgEffect.Play(0.1f, 0.0f, 0.0f);
How to play a background music and make it loop?
Currently I'm using this piece of code to make it play the background music:
XNA-C#
SoundEffect bgEffect;
bgEffect = Content.Load<SoundEffect>("EpicUnease");
bgEffect.Play(0.1f, 0.0f, 0.0f);
If this is not XNA, you can reference
System.Media
and do this:For XNA you would do something like this:
For more information, check out this msdn article: http://msdn.microsoft.com/en-us/library/dd940203.aspx