Frictional Games Forum (read-only)

Full Version: Change Sound Volume
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
(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!