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?
GetHimNotMe Offline
Junior Member

Posts: 15
Threads: 8
Joined: Apr 2012
Reputation: 0
#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
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
GetHimNotMe Offline
Junior Member

Posts: 15
Threads: 8
Joined: Apr 2012
Reputation: 0
#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
Mine Turtle Offline
Senior Member

Posts: 647
Threads: 32
Joined: Mar 2011
Reputation: 29
#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




Users browsing this thread: 1 Guest(s)