Frictional Games Forum (read-only)

Full Version: can you import your own music, so i can play my own music in game?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if so how? i play guitar, and interested in putting in some things ive recorded.
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/amn...ons#player
how would i convert it?

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

thank you