Frictional Games Forum (read-only)

Full Version: How do you add music?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a newbie at this. Just started a few days ago actually. I want to add music to my custom story and I already saw the syntax for playmusic but i don't exactly know how to use it. If anyone can help me out I would appreciate it! Thanks!
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.

asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc
so it would be:

void PlayMusic("02_amb_srange.ogg", true, 5, 3, 0, true); ?

you REALLY SHOULD concider even TRYING to search for this in the forum... this post has been made hundreds of times.. -_-