Frictional Games Forum (read-only)

Full Version: Ambience Music
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Amnesia - The Dark Descent\redist\music\09_amb_safe.ogg
(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?
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)
(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.);
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.
You need to place the playmusic in Void OnEnter aswell, I think.
PlayMusic("09_amb_safe.ogg", true, 0.7f, 1, 0, true);
works every time. Smile
(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