| GetHimNotMe   Junior Member
 
 Posts: 15
 Threads: 8
 Joined: Apr 2012
 Reputation: 
0
 | 
			| 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 |  | 
	
		| Strembitsky   Senior Member
 
 Posts: 254
 Threads: 37
 Joined: Feb 2012
 Reputation: 
3
 | 
			| 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 |  | 
	
		| GetHimNotMe   Junior Member
 
 Posts: 15
 Threads: 8
 Joined: Apr 2012
 Reputation: 
0
 | 
			| 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 |  | 
	
		| Mine Turtle   Senior Member
 
 Posts: 647
 Threads: 32
 Joined: Mar 2011
 Reputation: 
29
 | 
			| 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.. -_-
			 
 |  | 
	| 04-27-2012, 02:24 PM |  |