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
Amnesia music help
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#1
Amnesia music help

So im trying to put in custom music in my amnesia custom story and Im completely clueless. I have this script and have created an music> extramusic folder but i have no idea how to move on. Help!
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

}
08-24-2014, 05:14 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Amnesia music help

Here is an example.
Try to understand it.
If you do not or have any other questions let us know.
Quote:PlayMusic("YourMusicFileHere.ogg", true, 0.6, 3, 0, true);

First true = Do you want to loop the music file when finished? true is yes false is NO.
-
the second true at the end is do you want to resume the music if another one with another PRIO(rity) takes the music file over and when finished this file will continue.
(This post was last modified: 08-24-2014, 05:49 PM by DnALANGE.)
08-24-2014, 05:45 PM
Find
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#3
RE: Amnesia music help

(08-24-2014, 05:45 PM)DnALANGE Wrote: Here is an example.
Try to understand it.
If you do not or have any other questions let us know.
Quote:PlayMusic("YourMusicFileHere.ogg", true, 0.6, 3, 0, true);

First true = Do you want to loop the music file when finished? true is yes false is NO.
-
the second true at the end is do you want to resume the music if another one with another PRIO(rity) takes the music file over and when finished this file will continue.

Ahhhhh now i get it. Thx so much man!

(08-24-2014, 05:45 PM)DnALANGE Wrote: Here is an example.
Try to understand it.
If you do not or have any other questions let us know.
Quote:PlayMusic("YourMusicFileHere.ogg", true, 0.6, 3, 0, true);

First true = Do you want to loop the music file when finished? true is yes false is NO.
-
the second true at the end is do you want to resume the music if another one with another PRIO(rity) takes the music file over and when finished this file will continue.

I have done it like this but its still crashing:
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic(creep.ogg, false, 1, 1, 1, true);
}
(This post was last modified: 08-24-2014, 06:39 PM by theodorg.)
08-24-2014, 06:16 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#4
RE: Amnesia music help

Try this instead
PHP Code: (Select All)
void OnStart()
{
PlayMusic("creep.ogg"false111true);


and you already done a thread like this

(This post was last modified: 08-24-2014, 07:10 PM by Radical Batz.)
08-24-2014, 07:09 PM
Find




Users browsing this thread: 1 Guest(s)