I tried coming up with a way to get the toal length of tracks in a directory with pygame music, but it appears that it does not load it all in ram, thus you cannot without playing it?
So then i tried to load the mp3 file in sound since that does have an option to get_length(), however sound will not load mp3 files, must be ogg or wav. So then i converted the mp3 to wav, and it finally gave me the length of the song.
So questions comes to mind...
Why would you use mp3 files at all then, If wav files can be loaded as both music and sounds? Is there a loss in quality in wav files as opposed to mp3?