CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> SOUND ISSUES - the only thread please
https://www.captainsim.org/forum/csf.pl?num=1296900274

Message started by flyer01 on Feb 5th, 2011 at 10:04am

Title: Re: Gun sound
Post by Johan on Feb 8th, 2011 at 9:03pm

Trailboss wrote on Feb 8th, 2011 at 7:23pm:
I'm trying to build on what Johan wrote about the <Sound Name> files in CSWeapon.XML  I haven't worked with these files before, so please forgive a towering ignorance.  I did as Johan suggested, changing this line:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\VulcanCannon.wav" loopBeg="0.5139" loopEnd="0.3059" finishLoop="0" gain="1.0" />

To this:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\VulcanCannon.wav" loopBeg="0.5139" loopEnd="0.000" finishLoop="0" gain="1.0" />

With this change the Vulcan Cannon sound performed correctly with the button.

Next I changed this line:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_fire1.wav" loopBeg="0.046" loopEnd="0.553" finishLoop="0" gain="1.0" />

To this:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_fire1.wav" loopBeg="0.046" loopEnd="0.000" finishLoop="0" gain="1.0" />

After this change the GSH30 sound performed correctly.

The last change I made was from this:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_shot1.wav" loopEnd="0.1" finishLoop="1" gain="0.7" />

To this:

<Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_shot1.wav" loopEnd="0.000" finishLoop="1" gain="0.7" />

That change didn't help, the M60 sound still continued after releasing the button.  Now I'll really show my ignorance:  could the problem be that there is no "LoopBeg" statement?  I listened to the mg_shot1.wav file and found it was a single shot sound, so I assumed that was why there was not LoopBeg value.  If there should be a LoopBeg statement, what should the value be?

This doesn't explain why Mark hasn't had this problem but others have reported it, but it was the only thing I could think of.

PS:  After writing the above I again opened the CSWeapon.xml file and found the LoopEnd value that I had changed to "0.000" had defaulted back to "0.1"  The other statements allowed me to change the LoopEnd values, but not this one.  Is it because it is the default gun?



Hi Trailboss,

The credit goes actually to Flyer01 for his suggestion on loopEnd="0.000". The solution is not yet perfect on all guns, I am waiting for a response on my ticket as well. I hope CS is working on it.
Thanks,

Johan

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.