Frictional Games Forum (read-only)
Directional sound - 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: Directional sound (/thread-22399.html)



Directional sound - JonnyAnomaly - 08-12-2013

Hi,

I'm using PlaySoundAtEntity at a script area, which is positioned where I want a looping sound clip to come from, but when in game, the sound comes from everywhere and its direction becomes confusing (volume gets louder the closer you get though). What I was hoping to achieve is some kind of directional effect which will lead the player roughly to that spot.

I'm not using any kind of gaming headset with 3D audio, just a standard pair of music listening headphones with stereo settings on my computer, but when I play games like Counter-Strike, there is always a strong sense of direction with sound, despite my stereo setup.

I'm using 3d in the .snt file for my sound also.


RE: Directional sound - The chaser - 08-12-2013

Strange... I have done quite the same with my CS and I can guarantee you that it does the 3d effect... make sure the sound has the 3d=True thing enabled (you can see that by opening the .snt of the sound with a text editor, or that it isn't a problem with your audio equipment (In Audio options, in the main menu).

In case it doesn't have it, set it to true and save that sound in your folder CS/sounds.


RE: Directional sound - JonnyAnomaly - 08-12-2013

Yeah it is strange, since I do have the 3d set to true. The volume increases with getting closer, but doing a 360 turn on the spot its still sounds like its coming from the player somehow. I'll play with the settings more and see if I can achieve something better.

By the way, using PlaySoundAtEntity works with script areas as the sound position, right?


RE: Directional sound - Daemian - 08-12-2013

You know, this is happening to me too, i think it's the file somehow refusing to be placed somewhere.

Found it. My sound was set to stereo and Amnesia's are mono.
I changed it and it worked.


RE: Directional sound - The chaser - 08-12-2013

(08-12-2013, 06:39 PM)JonnyAnomaly Wrote: Yeah it is strange, since I do have the 3d set to true. The volume increases with getting closer, but doing a 360 turn on the spot its still sounds like its coming from the player somehow. I'll play with the settings more and see if I can achieve something better.

By the way, using PlaySoundAtEntity works with script areas as the sound position, right?

Yes, of course.

Do one thing: Check if there's another sound called exactly like the one you are using. The game may get that one instead yours:

I was doing stuff in my CS, when I had to use a sound with randomized tracks. However, when it played, only one track was played. That was because there already was a file with the same name but edited from the inside, that came from a custom story-you might want to check that.


RE: Directional sound - Damascus - 08-12-2013

I've also had that problem depending on whether the .ogg itself is stereo or mono. Don't remember which is the right one, though.


RE: Directional sound - JonnyAnomaly - 08-13-2013

I'm using audacity to export my .ogg, so it might be something in there that needs to be changed. So far I've tried a few things but it doesn't seem change anything..

Thanks Damascus, its working now - The sound needs to be made mono in Audacity before exporting. I made the track mono in the track's drop down menu, and deleted its other (stereo) track. Now it sounds like its coming from one spot, not everywhere.