It shouldn't be illegal as long as you handle downloads of the music well. For example you can't use dlcs, because these have to be shared as a part of the game. You also cannot upload any music that doesn't allow it anywhere, so this makes the whole downloading thing rather tedious.
However, I don't like any game that downloads files on my computer. 1. It depends on the internet connection, 2. it means -i can't play the game offline properly, 3. Who knows what the game could download. I've had a game on android download a trojan virus.
I can handle creating files on my computer, although even this is hanging on a thread. But downloading files? Pfff.
Also, why would you download the files? Why not just include them in the game? You'd spare yourself some trouble.
As with most discussions about legality on these boards, most of the members here are not law professionals, but I'd be inclined to say that implementing copyrighted tracks in your game, even in a roundabout way, wouldn't be legal. Other games that use the players' music folders such as Audiosurf and Beat Hazard get around this by stating that the user is responsible for any copyrighted tracks played in the game, but if you're distributing those songs to the player then you can't claim the responsibility is on the user.
I don't see how the user is responsible for tracks the developer stole and illegally put in their game.
if playing pre-existent files was illegal, winamp, VLC, and Audacity would have been taken down loooooooooooooooooooooooooong ago.
you're alright.
So you meant to say music they have downloaded.
In that case, you're not providing any music - you are just giving them a program that will play the music. There are no legal issues with that. Go for it.
Support forums are for asking "How do I...?" (implementation) questions, which isn't what you are asking here.
Moved to: General Discussion