Frictional Games Forum (read-only)
How do you add music? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do you add music? (/thread-15120.html)



How do you add music? - GetHimNotMe - 04-26-2012

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!


RE: How do you add music? - Strembitsky - 04-26-2012

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



RE: How do you add music? - GetHimNotMe - 04-27-2012

so it would be:

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




RE: How do you add music? - Mine Turtle - 04-27-2012

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