Problems with directional sounds when emitting from an entity
0 replies, posted
The script I am working on plays a wav sound that emits from the player using Entity:EmitSound(). Some of my custom wav files, when emitted from a player, actually play from that player and it has direction as it should with a sound being played in the world. However most of my wav files, when emitted from a player, play on top of everyone else as if it is being played by surface.PlaySound() rather than from the entity. I pulled two audio clips from my webserver that exhibit the issues I am having. I could not find a discernible difference in the files. Does anyone possibly know what the difference is or what might be causing this to occur?
[url]http://mythicservers.com/sounds/random/holy_shit.wav[/url] <-- Plays from the emitted entity normally and has directional sound.
[url]http://mythicservers.com/sounds/random/developers.wav[/url] <-- Sounds like it is being played by surface.PlaySound() and is 'on' of the player hearing it.
Edit:
Well I found the issue which irritated me to no end when I finally did. Apparently Stereo track audio doesn't emit from the entity properly. When I split the stereo tracks into mono tracks, the sounds emitted perfectly from the entity. Seems a bit counter-intuitive but it works.
Sorry, you need to Log In to post a reply to this thread.