SoundAircraft

The SoundAircraft aircraft is a preset of the WASMAircraft modular aircraft, and includes a minimal set of files to set up an aircraft to play sound effects based on user interaction. Once the WASM Aircraft package has been built, this module will be available for flying from the aircraft selection screen:

Selecting The Sound Aircraft In The Simulation

 

The WasmModules.sln file (found in the Sources folder of the project) will allow you to compile the source-code with Microsoft Visual Studio (2019 or 2022) in order to create the SoundAircraft.wasm WebAssembly module which will then be loaded by the game. Once compiled, the module will automatically be copied into the following folder:

[ROOT]\PackageSources\SimObjects\Airplanes\MyCompany_Wasm_Aircraft\presets\mycompany\SoundAircraft\panel

 

Note that if you make changes to the C++ code and recompile the sound WASM module, you will have to build your package again. This can be done while the plane is used within the simulation.

 

 

Testing

Once you start a flight using the sound aircraft preset, you will be presented with 3 "glass cockpit" screens which can be interacted with. The first will do nothing (it is provided as a "template") and the other two will play sound effects when clicked. You can stop the sound on the third screen by clicking it again:

The Cockpit Interior Of The Charts Aircraft