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
can you import your own music, so i can play my own music in game?
Death Icarus Offline
Junior Member

Posts: 19
Threads: 8
Joined: Sep 2011
Reputation: 0
#1
can you import your own music, so i can play my own music in game?

if so how? i play guitar, and interested in putting in some things ive recorded.
01-31-2012, 12:25 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: can you import your own music, so i can play my own music in game?

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

(This post was last modified: 01-31-2012, 01:13 PM by flamez3.)
01-31-2012, 01:13 PM
Find
Death Icarus Offline
Junior Member

Posts: 19
Threads: 8
Joined: Sep 2011
Reputation: 0
#3
RE: can you import your own music, so i can play my own music in game?

how would i convert it?

01-31-2012, 02:01 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: can you import your own music, so i can play my own music in game?

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


01-31-2012, 02:16 PM
Find
Death Icarus Offline
Junior Member

Posts: 19
Threads: 8
Joined: Sep 2011
Reputation: 0
#5
RE: can you import your own music, so i can play my own music in game?

thank you
01-31-2012, 02:40 PM
Find




Users browsing this thread: 1 Guest(s)