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
Custom Sound Effect Not Directional...
13irth Offline
Junior Member

Posts: 12
Threads: 3
Joined: Dec 2014
Reputation: 0
#1
Custom Sound Effect Not Directional...

Answer: Sound must be mono for it to work directionally. Thanks to Kurton and Mudbill for le helpz.

I made a custom sound effect and did this:
void OnEnter()
{
PlaySoundAtEntity("", "ticktock.snt", "clocksound", 0.0f, false);
}

My SNT file:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="ticktock.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="0.5" MaxDistance="2" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="True" Use3D="True" Blockable="False" BlockVolumeMul="0.5" Priority="5" />
</SOUNDENTITY>

I wanted it to sound like it was coming from the clock but I don't understand why it's not coming from the scriptarea and instead is just around the player when you're near the scriptarea...
(This post was last modified: 10-13-2016, 09:57 PM by 13irth.)
10-11-2016, 01:57 AM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: Custom Sound Effect Not Directional...

Try turning Use3D off. Might help, but it's a wild guess- it seems like it should work.
You could also use the level editor sound thingy (it's on the tool bar to the left).

10-11-2016, 05:28 PM
Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#3
RE: Custom Sound Effect Not Directional...

Check if your custom sound is mono/one channel. If it's stereo, you can't use it as a directional sound

10-12-2016, 05:45 AM
Find
13irth Offline
Junior Member

Posts: 12
Threads: 3
Joined: Dec 2014
Reputation: 0
#4
RE: Custom Sound Effect Not Directional...

3D off using script: sound plays at player no matter what distance.
3D on using script: plays sound when near area but not directional.

(after removing script)
3D off using in-editor sound: sound plays at player no matter what distance.
3D on using in-editor sound: plays sound when near area but not directional.

The sound file is stereo. (http://i.imgur.com/gjh60nf.png)

So... ._.

Edit:
Also sorry for the late reply. I didn't get emailed ;-;

I just reeeeally want it to sound like it's coming from your left speaker/headphone when the clock is on your left. etc. I even unchecked "use default" when using the in-editor sound thingy and tested again but nope..

Edit2: Are all sound effects non-directional? Or is it just this specific issue...
I mean it raises in volume when you get closer, but it doesn't seem to come from any direction...
(This post was last modified: 10-13-2016, 09:38 PM by 13irth.)
10-13-2016, 09:07 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Custom Sound Effect Not Directional...

Well if it is like Kurton says, then it will not work if the file is stereo. Perhaps it has to do with it playing in both ears from a position, which cancels out the direction. I'm not sure, I have not delved into this topic.

10-13-2016, 09:39 PM
Find
13irth Offline
Junior Member

Posts: 12
Threads: 3
Joined: Dec 2014
Reputation: 0
#6
RE: Custom Sound Effect Not Directional...

(10-13-2016, 09:39 PM)Mudbill Wrote: Well if it is like Kurton says, then it will not work if the file is stereo. Perhaps it has to do with it playing in both ears from a position, which cancels out the direction. I'm not sure, I have not delved into this topic.

Oh I see. I misread what he wrote. I'll put it as mono and try again.

Edit: Working now! Thanks guys ; -;
(This post was last modified: 10-13-2016, 09:45 PM by 13irth.)
10-13-2016, 09:43 PM
Find




Users browsing this thread: 3 Guest(s)