Is there any music player module available, which we can reuse?

It seems like all developers, who want to make a music visualizer need their own music player for their app. It seems like a waste of time that all developers should program their own music player, since they all do the same thing. So is there any music player module available, which we can reuse?