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?
http://mythicservers.com/sounds/random/holy_shit.wav <-- Plays from the emitted entity normally and has directional sound.
http://mythicservers.com/sounds/random/developers.wav <-- Sounds like it is being played by surface.PlaySound() and is ‘on’ of the player hearing it.
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.