Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
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
(This post was last modified: 07-24-2011, 02:28 AM by Angerpull.)
|
|
07-23-2011, 10:36 PM |
|
Roenlond
Senior Member
Posts: 331
Threads: 3
Joined: Apr 2011
Reputation:
0
|
RE: Ambience Music
Amnesia - The Dark Descent\redist\music\09_amb_safe.ogg
|
|
07-23-2011, 10:41 PM |
|
Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
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 |
|
MrCookieh
Member
Posts: 157
Threads: 8
Joined: Jul 2011
Reputation:
0
|
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)
(This post was last modified: 07-23-2011, 10:55 PM by MrCookieh.)
|
|
07-23-2011, 10:49 PM |
|
Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
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?
|
|
07-23-2011, 10:55 PM |
|
MrCookieh
Member
Posts: 157
Threads: 8
Joined: Jul 2011
Reputation:
0
|
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.
|
|
07-23-2011, 10:58 PM |
|
JoeBradleyUK
Member
Posts: 115
Threads: 20
Joined: Jul 2011
Reputation:
0
|
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 |
|
JenniferOrange
Senior Member
Posts: 424
Threads: 43
Joined: Jun 2011
Reputation:
33
|
RE: Ambience Music
PlayMusic("09_amb_safe.ogg", true, 0.7f, 1, 0, true);
works every time.
Ba-da bing, ba-da boom.
|
|
07-24-2011, 12:42 AM |
|
Angerpull
Member
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
|
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.
Thanks, it works. Now to continue my story... Is scary man :c
|
|
07-24-2011, 01:20 AM |
|
|