Jump to content
The simFlight Network Forums

Recommended Posts

Hi,

 

I'm developing a little software with environment sounds, but I'm stock with two of them.

I would like to have turbulence and rain sounds.

For Turbulence, I would like to play a sound every time the airplane "shakes". For the rain, play a loop sound, but only when the rain hit's the cockpit "below the clouds".

 

I've Active Sky 4, so does anyone know what offsets can I use to achieve this? I've used 0x0E88 and 0x0E98 for turbulence, but doesn't give me the expected result. For the rain, doesn't have a single idea.

Is there any API of AS4 to achieve this?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Hi.

Active Skye ambient turbulence at aircraft is at offset 8638, and precipitation at 8640. From the offsets documentation, ActiveSky  offsets are:

8638 4 ActiveSky needed: Ambient turbulence at aircraft (0-1000), 32-
bit float
863C 4 ActiveSky needed: Exported ambient visibility (metres), 32-bit
float (-ve if not supported)
8640 41 ActiveSky needed: Exported precipitation type (0 none, 1 rain, 2
snow, 3 hail), 8-bit integer (Byte)
8641 41 ActiveSky needed: Exported precipitation rate (0-4), 8-bit
integer (Byte)
8642 41 ActiveSky needed: In cloud flag (non-zero if aircraft is in cloud),
Byte

** the byte offsets (8640, 8641, 8642) are 1 byte not 4 (obviously!) - I'll correct the documentation for this [I did strikethrough the incorrect '4' size above, but the strikethrough is not so obvious on that number!] **

Cheers,

John

Share this post


Link to post
Share on other sites

Hi John,

 

Thanks a lot for the quick reply. 

I've search in Active Sky docs and in the WX radar facilities docs and didn't notice this information in the offsets documentation.

 

Now I know where to start :D

 

About the offsets length, yes, they are bytes. 

Once again, thank you for the help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.