Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you add music?
Author Message
GetHimNotMe Offline
Junior Member

Posts: 15
Joined: Apr 2012
Reputation: 0
Post: #1
How do you add music?
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!
04-26-2012 11:56 PM
Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
GetHimNotMe Offline
Junior Member

Posts: 15
Joined: Apr 2012
Reputation: 0
Post: #3
RE: How do you add music?
so it would be:

void PlayMusic("02_amb_srange.ogg", true, 5, 3, 0, true); ?
(This post was last modified: 04-27-2012 12:21 AM by GetHimNotMe.)
04-27-2012 12:21 AM
Find all posts by this user Quote this message in a reply
Mine Turtle Offline
Senior Member

Posts: 655
Joined: Mar 2011
Reputation: 28
Post: #4
RE: How do you add music?
you REALLY SHOULD concider even TRYING to search for this in the forum... this post has been made hundreds of times.. -_-

[Image: 201107142327000.gif]
04-27-2012 02:24 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)