plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

bagolu avatar image
bagolu asked bagolu answered

WwiseEvent with wave filename and speed condition

I would like to add a splash sound effect when floats hit the ground (water). The floats have a fuselage_scrape sound type, and I want to use an external wave file name "Splash.wav"

I've managed to got the sound when the floats touch the water :

<Sound WwiseEvent="FUSELAGE_SCRAPE" WwiseData="false" FileName="Splash" FadeOutType="2" FadeOutTime="0.1"/> 


But when I try to add a speed condition and stop the sound when speed is low, I got no result. Here's my best try (not working) :

<Sound WwiseEvent="FUSELAGE_SCRAPE" WwiseData="false" FileName="Splash" FadeOutType="2" FadeOutTime="0.1"> 
    <Requires SimVar="GROUND VELOCITY" Units="METERS PER SECOND" Index="0"> <Range LowerBound="10" /> </Requires> 
    <WwiseRTPC SimVar="GROUND VELOCITY" Units="METERS PER SECOND" Index="0" RTPCName="SIMVAR_GROUND_VELOCITY" /> 
</Sound>

The sound still plays at speed=0.

I'm kinda stuck there...

sound
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

dga avatar image
dga answered dga edited

Refer to the SDK docs here Legacy Sound Docs and look for the section "Ground Sounds".

It has the attributes (also for minimum speed) documented, which might help your case.
I am not 100% sure how that would look in the end though.

Using WwiseRTPC would not work with WwiseData=false

-- dga | Working Title

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

bagolu avatar image
bagolu answered

Refering to the docs, legacy sound can not be mixed with wwise

I'm already using a wwisedata for the plane and wavedata for additional sounds.

You're right about the WwiseRTPC, it can't be used in my code. But requires & range can be, according to the docs.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello bagolu,

As dga said and as stated here, you need to set the WwiseData paramater to "true" to have your WwiseRtpc element used.
Let us know if that fixes your issue.

Regards,
Sylvain

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

bagolu avatar image
bagolu answered

No success in that.

I will wait for the sim to have proper water sounds. I hope they'll be reusable not like on the IconA5

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.