Skip to content

Principle

Marek Vajgl edited this page Apr 25, 2024 · 3 revisions

This page explains App principles in more detailed way.

FS2020 Connection

In the plane, there are up to 3 communication radios - COM1, COM2 and COM3. A pilot can receive all of them at once, but transmit only via one selected. The information about the selected transmit radio and output volume of all three radios is read out via SimConnect library and appropriate variables (see below if more detail is needed).

vPilot Volume Adjustment

This app does not access vPilot directly. Instead, it uses Windows OS functionality called Volume Mixer panel, where an OS user can adjust output volume per application. To adjust vPilot volume, this app accesses Volume Mixer functionality via Windows API (Windows Audio Core API), looks for the vPilot and then adjusts its mixed output volume.

vPilot also uses only COM1 and COM2 capabilities.

Synchronization principle

vPilot offers in Volume Mixer only one audio stream volume for both COM1/2 receiving. Concerning that, it is not possible to adjust output volume per COM1/2 radio separately, what might be useful for example for listening to ATIS at low volume on COM2 when receiving COM1 as a main channel.

Therefore, the app looks for the active transmit radio preset in FS2020. Once transmit radio is changed, or the volume of the transmit radio is changed, the output volume of vPilot is synchronized.