Frictional Games Forum (read-only)
can you import your own music, so i can play my own music in game? - 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: can you import your own music, so i can play my own music in game? (/thread-12991.html)



can you import your own music, so i can play my own music in game? - Death Icarus - 01-31-2012

if so how? i play guitar, and interested in putting in some things ive recorded.


RE: can you import your own music, so i can play my own music in game? - flamez3 - 01-31-2012

You would need to convert it to a .ogg file. Then just use this function script in void OnStart() of your .hps file

PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);


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



Taken from http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#player


RE: can you import your own music, so i can play my own music in game? - Death Icarus - 01-31-2012

how would i convert it?




RE: can you import your own music, so i can play my own music in game? - Khyrpa - 01-31-2012

(01-31-2012, 02:01 PM)Death Icarus Wrote: how would i convert it?
Audacity is a freeware that could do it




RE: can you import your own music, so i can play my own music in game? - Death Icarus - 01-31-2012

thank you