Jump to content
The simFlight Network Forums
longkimari

About audios ,using .net DLL.

Recommended Posts

Hi Paul:

    I was working on Cessna172 recently.

    There is a problem, I can't match the audio pannel switchs from FSUIPC, the panel like this:

    image.png.263dca8517a28872060cb787b06c2035.png

(if you can't discern:

left column:  COM1MIC,COM2MIC,COM3MIC,COM1/2,PA,MXR MUTE,DME,ADF,AUX,MANSQ,PILOT

right column: COM1,COM2,COM3,TEL,SPKR,HI SENS,NAV1,NAV2,PLAY,COPLT 

)

   I only found that 

image.png.915b08d72a92118610f39cb07020075a.png

in FSUIPC. But those are far from enough(and 3122 is using BitArray ? Is .value[0] means ADF1?).

How could I found and match those switchs?

Thank you for helping so much Paul.

Best regards.

Share this post


Link to post
Share on other sites
37 minutes ago, longkimari said:

left column:  COM1MIC,COM2MIC,COM3MIC,COM1/2,PA,MXR MUTE,DME,ADF,AUX,MANSQ,PILOT

right column: COM1,COM2,COM3,TEL,SPKR,HI SENS,NAV1,NAV2,PLAY,COPLT 

You need to state their functions, else how can you use them anyway?

COM3 isn't supported as an FS facilty, nor are PA, MXR MUTE, AUX, MANSQ, PILOT, TEL, SPKR, HI SENS, PLAY, COPLT (though I don't know what one or two of them could be).

COM1MIC and COM2MIC will be the COM transmits of course. Normally you'd only hear the selected COM sound, but COM1/2 would probably be "receive both".

The plain COM1, COM2 are presumably on/off sound buttons -- most cockpits have volume controls on the audio panel. Not simulated in FS though, you have to use the volume on your sound system.

ADF, NAV1 and NAV2 sounds are self-evident -- the morse signals confirming identity.  AUX could be anything. You could use it for Marker sound perhaps. You then just need to choose one of the others for DME sound (identity again)..

BTW, that pic looks nothing like the audio panel in the 172 I flew when learning to fly aeons ago. I assume it's an enhancement?

Pete

 

Share this post


Link to post
Share on other sites

As Pete says, most of those switches are not supported by FSUIPC because they do not exist in FSX/P3D.

Only those listed in offset 3122 are built into FSX/P3D.

The developers of the aircraft you are using have programmed these switches themselves.

They may be accessible to you, but you'll need to ask the developers (or on their forums) how you can do this. It might not be possible.

One thing you can try first is to look for Local Panel Variables (L:Vars). If they exist for this aircraft you can read and write them using the DLL.

To list the L:Vars for the aircraft, do the following: (You must have registered copy of FSUIPC).

1. Open the FSUIPC interface from the FSX/P3D menu bar (Add-Ons -> FSUIPC).

2. Goto the [Key Presses] tab and assign a key press to the control called "List Local Panel Variables". I have this assigned to ctrl-shit-V. (You could also use a joystick button using the [Buttons + Switches tab]

image.png.014bf97f1bdfddd3f2f7a76a621563f5.png

3. Go to the [Logging] tab and tick [Send to console window].  You can have other options turned on if you want.

image.png.7ab6342f96df7ffb44ad12818ee08d27.png

5. Press OK and return to the cockpit. Also find the console window with the FSUIPC Log.

6. Load the aircraft you want to work with. (LVars are specific to each aircraft).

7. Press your key combination, or joystick button you assigned above.

8. In the console window you'll see all the LVars listed with their values. If the developer has used LVars you will be able to identify them in the list.

Here is what L:Vars look like in the Log Console Window:

image.png.91fe09fce21e16a84ff8c07c3cc2c865.png

You can also view them in the FSUIPC.log file located in the Modules folder under your main FSX/P3D install folder.

To read and write LVars see the Example Code application: Advanced Concepts ->  AC005_ReadWriteLVARS.

 

Quote

3122 is using BitArray ? Is .value[0] means ADF1?

Yes, that's correct.

Paul

Share this post


Link to post
Share on other sites

Thanks for  Pete and Paul.

I think they are enhancement indeed . And probably most of them are  just control  the Hardwares , or may be they are useless and just for appearance.

 

 

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.