Dear Hidong,
ok, I looked into the map and the matter.
In the map that you uploaded, the
shadername was given as "
\Games\DeathMatch\Sounds\jungle.wav" - note the "\" at the beginning.
When you remove the "\", the file name is techically correct.
Then, you're right that there is
still a problem: You
can hear the sound, but only if you're very close to the speaker, and even then it's usually very low. I found that this is related to distance attenuation computations, which are currently not entirely correctly implemented in the Ca3DE SoundSys.
The biggest problem though is that you cannot change the related settings from within CaWE, but fortunately, there is a work-around:
Instead of using the sound file (Games\DeathMatch\Sounds\jungle.wav) directly, write your own sound shader.
For example, open file
Games\DeathMatch\SoundShader\Ambient.caud in a text editor, and add a sound shader like the one that is already there. For example:
Code: Select all
Ambient/MySound
{
AudioFile Sounds/myFile.wav // Now relative to Games/DeathMatch!
MinDistance 6.0 // This is important, see text below. :-)
}
The important line is
MinDistance 6.0, which causes a better distance attenuation setup.
Without all this, the SoundSys implicitly takes a MinDistance value of 0.0, which causes the problems.
I found that a value of 6.0 causes the sound to be well audible near the source and to fade near the far parts of your map. If you use e.g.
MinDistance 30.0, there is even less fading, i.e. the sound is equally loud throughout the map (almost like background music). You may want to experiment with values somewhere in range 2 ... 40 until you find one that you like best. (If you don't want to experiement: 6 or 10 work well.
) Good thing about the sound shader is that you don't have to recompile your map whenever you changed the value.
Then, back in CaWE, use
Ambient/MySound (from the example above) for the
shadername. The other settings in CaWE about volume etc. remain valid, as they override any equivalent settings from the sound shader definition file.
Btw., great map!!