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
Change Sound Volume
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
Change Sound Volume

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

When you are looking for someone, to do the scripting for your Custom Story, ask me!
11-09-2012, 10:13 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Change Sound Volume

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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-09-2012, 10:22 PM
Find
Melvin Offline
Member

Posts: 245
Threads: 38
Joined: Jun 2012
Reputation: 5
#3
RE: Change Sound Volume

(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!

[Image: 25F7U37.png]
(This post was last modified: 11-09-2012, 10:36 PM by Melvin.)
11-09-2012, 10:34 PM
Website Find




Users browsing this thread: 1 Guest(s)