Frictional Games Forum (read-only)
Amnesia music help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Amnesia music help (/thread-25948.html)



Amnesia music help - theodorg - 08-24-2014

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);

}



RE: Amnesia music help - DnALANGE - 08-24-2014

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.


RE: Amnesia music help - theodorg - 08-24-2014

(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);
}


RE: Amnesia music help - Radical Batz - 08-24-2014

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


and you already done a thread like this