0
votes
1answer
56 views

How to correctly handle multiple Songs in XNA?

I'm working on a (Windows-only) game in XNA, and I have multiple music tracks. I don't want to load them all into memory, but play them on demand. To properly dispose them, I have a separate ...
8
votes
2answers
453 views

How to loop section from a song correctly?

I'm programming a little Music Engine for my game in C# and XNA, and one aspect from it is the possibility to loop a section from a song. For example, my song has an intropart, and when the song ...
2
votes
2answers
223 views

How can I make my program get a username?

I am making a program that I want to load music from library/music on any computer. To do this I use Music.FromUri(). However, I need the username from the current computer in order for the filepath ...
0
votes
2answers
1k views

Switching songs - MediaPlayer lags the game

When the player encounters a boss in the game I'm working on, I want to have the music change. It seems simple enough with the MediaPlayer class to fade out the current song, switch to another, and ...
6
votes
1answer
509 views

How can I embed music in my XNA .exe?

I'm trying to embed music in my XNA game's .exe (with resources) but compiling them as a sound effect stores the music in uncompressed form, which results in a 16 MB .exe. I can compress my music ...
8
votes
2answers
2k views

Eliminate delay between looping XNA songs?

I'm making a game with XNA and trying to get some background music to loop correctly. Because the file is an MP3 of about 30 seconds in length, I instantiated it as a Song. I want it to loop ...
6
votes
2answers
987 views

How do you keep the gameplay and music in sync in a rhythm game?

What's the best way to program a rhythm based game in XNA? (Some sort of game like Dance Dance Revolution) Would you use the built in GameTime? What logic would you use to make sure the game ...