Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you add music?
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#2
RE: How do you add music?

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

The Nightmares v1.0 - Dreadful Fires WIP
(This post was last modified: 04-26-2012, 11:59 PM by Strembitsky.)
04-26-2012, 11:59 PM
Find


Messages In This Thread
How do you add music? - by GetHimNotMe - 04-26-2012, 11:56 PM
RE: How do you add music? - by Strembitsky - 04-26-2012, 11:59 PM
RE: How do you add music? - by GetHimNotMe - 04-27-2012, 12:21 AM
RE: How do you add music? - by Mine Turtle - 04-27-2012, 02:24 PM



Users browsing this thread: 1 Guest(s)