Game Development Community

Audio Emitter Nonsense

by Brendan McLeod · in Technical Issues · 10/15/2006 (3:35 pm) · 1 replies

This problem has driven me to the brink.

I'm making a networked multiplayer game. I have two machines. They make the same noise. They will always make this noise, so I don't even have to worry about turning them on and off.

So, I should be able to just make two audio emitters, identical in all respects other than position, make sure that they're 3D, and everything's hunky dorey, right?

Wrong.

This is my AudioEmitter:

new AudioEmitter(audio_loader_#_##) {
position = "-3.7 -12 2.5";
rotation = "1 0 0 0";
scale = "1 1 1";
useProfileDescription = "0";
fileName = "~/data/sound/loader.ogg";
type = "2";
volume = "0.7";
outsideAmbient = "1";
ReferenceDistance = "5";
maxDistance = "15";
isLooping = "1";
loopCount = "-1";
minLoopGap = "0";
maxLoopGap = "0";
enableVisualFeedback = "0";
is3D = "1";
coneInsideAngle = "360";
coneOutsideAngle = "360";
coneOutsideVolume = "0.3";
coneVector = "0 1 0";
};

This is identical except for its location in the code, the position coordinates, and the name of the emitter (which follow a grid system which we're using to organize everything in the level.)

When I spawn into the world, if I go to one of them, it plays just fine. If I look at it in the editor then it's a nice green box with red particles spinning around it.

If I go to the other one, I hear nothing. It looks identical when viewed in the editor. NOW -- if I change the 'type' to any number at all when in the editor then it will start playing! I can exit the editor and run back and forth between them and it seems fine. But I want eight people to be able to jump into the mission, so obviously I can't hinge the functionality of my ambient sounds on people adjusting things in the level as they run across them.

Please, please, please tell me you've got an answer for me.

Brendan McLeod

#1
09/19/2007 (2:07 pm)
Hey Brendan - I'm running into the exact same issue. Did you (or anyone else) ever find an answer for this?