I have been trying to add new sounds effects to the mod (mandalorian gun sound, Hyena missile torp, AAT gun sound etc). They are in wav format, mono channel. This is an example of the Vulture/Hyena torp
<SFXEvent Name="Unit_Vulture_Torpedo_Fire">
<Use_Preset>Preset_GUNS</Use_Preset>
<Samples>GUN_vulture_torp.wav</Samples>
</SFXEvent>
This is media info on the file
Format : Wave
File size : 76.0 KiB
Duration : 879 ms
Overall bit rate mode : Constant
Overall bit rate : 708 kb/s
Writing application : Lavf57.56.101 (libsndfile-1.0.24)
Software : Lavf57.56.101
major_brand : mp42
minor_version : 0
compatible_brands : isommp42
Audio
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 879 ms
Bit rate mode : Constant
Bit rate : 705.6 kb/s
Channel(s) : 1 channel
Sampling rate : 44.1 kHz
Bit depth : 16 bits
Stream size : 75.8 KiB (100%)
I've tried putting the sounds in both Audio/SFX and just Audio folder but I just can't get any new sound to work in the game. I'm having no problem with either the unit apeech nor the music, juts weapon and vehicle sound effects. Is there some catch I'm mission, code or file formatting? Any help will be appreciated.
Make sure to include the directory of the files in the Samples section. So instead of what you have above, you should have something like:
<Samples>Data/Audio/SFX/GUN_vulture_torp.wav</Samples>
Hmm, I think I also tried it, but worth another shot.
Don't you need a "volume" line i the .xml?
I managed to fix it, new sounds are working now.
How?