EDIT: I figured out how to play mp3, ogg, aif, wav, it, xm, mod, s3m etc etc. Essentially all music types including various playlist types like m3u using FMOD
So, i could not figure out how to use other music formats other than mod, s3m, it or xm tracks.
I figured I would enhance the music system anyway. I decided to add 3 buttons and text spot to the HUD next to the speed buttons.
The text spot lists the current track name being played. The 3 buttons (technically 4) are Previous Track, Must/Unmute) and Next Track.
In order to make this more effective I found an awesome website which sports mod type music made by other people, when avoiding the techno type music you end up running into some decent Uplink type tracks and I was able to enhance my tracklist to 23 tracks at over 2 hours of music play.
The tracks sound pretty legit and fit Uplink to a tee.
Here is one of the functions for selecting a previous track in the playlist. This is a soundgarden modification.
Code:
void SgPlaylist_PrevSong ()
{
SgPlaylist *playlist = SgPlaylist_GetPlaylist(currentplaylist);
if ( playlist ) {
if ( songindex < 1 ){ // songindex 0 = track 1
songindex = 22;
}else{
--songindex;
}
char *songtitle = playlist->songs.GetData(songindex);
SgPlayMod ( RsArchiveFileOpen ( songtitle ) );
strcpy ( currentsong, songtitle );
}
else
printf ("SgPlaylist_PrevSong : Failed because playlist %s does not exist\n", currentplaylist);
}
I would post a screenshot but this forum says "Your post looks too spamy for a new user, please remove off-site URLs."