Frictional Games Forum (read-only)
Change Sound Volume - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Change Sound Volume (/thread-19164.html)



Change Sound Volume - tonitoni1998 - 11-09-2012

i created an area and wanted to make it louder. how can i do it?

code:


void area_scare_3(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "scare_thump_loop.snt", "Player", 0, true);
}

thanks for helping


RE: Change Sound Volume - The chaser - 11-09-2012

You cannot do it louder with sound, but you can with music. It would be something like:

PlayMusic("scare_thump_loop.ogg", false, float afVolume, 1, 1, false);
That's a number. Change it and play with it until you get the desired effect.


RE: Change Sound Volume - Melvin - 11-09-2012

(11-09-2012, 10:22 PM)The chaser Wrote: You cannot do it louder with sound, but you can with music. It would be something like:

PlayMusic("scare_thump_loop.ogg", false, float afVolume, 1, 1, false);
That's a number. Change it and play with it until you get the desired effect.
Correct me if I'm wrong, but you can change the sound volume by editing the .snt file that comes with the sound.

there's a sound.ogg and a sound.snt

This is the Sound.snt


<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="YOURSOUNDFILE.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="5" MinDistance="1" MaxDistance="50" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7" Priority="5" />
</SOUNDENTITY>


<Sound File="YOURSOUNDFILE.ogg" />
Tells you which .ogg must be played.

Volume="5"
Change the volume to a higher number.


You can change the volume of the sound. You just have to make your own custom sound.
Good luck!