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
Ambience Music
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
Ambience Music

Where can I find the same Abience Music as the one after the water lurker? I kinda need it but I cannot find it anywhere in the Sound thing on the Editor.

Please Help Smile
(This post was last modified: 07-24-2011, 02:28 AM by Angerpull.)
07-23-2011, 10:36 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Ambience Music

Amnesia - The Dark Descent\redist\music\09_amb_safe.ogg
07-23-2011, 10:41 PM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#3
RE: Ambience Music

(07-23-2011, 10:41 PM)Roenlond Wrote: Amnesia - The Dark Descent\redist\music\09_amb_safe.ogg

Thank you! But how do I get it into the game?
07-23-2011, 10:45 PM
Find
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#4
RE: Ambience Music

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

Plays music.

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

Example: PlayMusic("09_amb_safe", true, 100, 0, 0, true); (Not sure what the bool abResume does)
This will play your ambient at volume 100 (I think it's percentage), with 0 seconds fadeintime and priority 0 (This music pauses all other music)

The Well: Descent - Take a look at it!
(This post was last modified: 07-23-2011, 10:55 PM by MrCookieh.)
07-23-2011, 10:49 PM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#5
RE: Ambience Music

(07-23-2011, 10:49 PM)MrCookieh Wrote: void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.

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

Okay but how would that look like?

This?

Spoiler below!
PlayMusic("09_amb_safe.ogg", true, 100%, 2, 0, I don't know wtf this is since you didn't tell me.);
07-23-2011, 10:55 PM
Find
MrCookieh Offline
Member

Posts: 157
Threads: 8
Joined: Jul 2011
Reputation: 0
#6
RE: Ambience Music

sorry, I edited it afterwards, but too late I think.

Myself Wrote:Example: PlayMusic("09_amb_safe", true, 100, 0, 0, true); (Not sure what the bool abResume does)
This will play your ambient at volume 100 (I think it's percentage), with 0 seconds fadeintime and priority 0 (This music pauses all other music)

remove the % after the 100, because a float is needed, and the % would give you an error message.

The Well: Descent - Take a look at it!
07-23-2011, 10:58 PM
Find
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#7
RE: Ambience Music

You need to place the playmusic in Void OnEnter aswell, I think.

:Work In Progress:
Insanity
07-24-2011, 12:12 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#8
RE: Ambience Music

PlayMusic("09_amb_safe.ogg", true, 0.7f, 1, 0, true);
works every time. Smile

Ba-da bing, ba-da boom.
07-24-2011, 12:42 AM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#9
RE: Ambience Music

(07-24-2011, 12:42 AM)JenniferOrange Wrote: PlayMusic("09_amb_safe.ogg", true, 0.7f, 1, 0, true);
works every time. Smile

Thanks, it works. Now to continue my story... Is scary man :c
07-24-2011, 01:20 AM
Find




Users browsing this thread: 8 Guest(s)