Howto:Add sound effects to aircraft: Difference between revisions

Jump to navigation Jump to search
m
(Document bugs when using mode=once and max-dist. See https://sourceforge.net/p/flightgear/simgear/merge-requests/120/)
Line 342: Line 342:
== Multiplayer sound ==
== Multiplayer sound ==
The multiplayer sound file works just as the normal sound file, except it should reside in <code>/sim/model/sound</code> instead of <code>/sim/sound</code>. Make sure it depends on properties that are [[Howto:Transmit_properties_over_MP|transmitted over MP]].
The multiplayer sound file works just as the normal sound file, except it should reside in <code>/sim/model/sound</code> instead of <code>/sim/sound</code>. Make sure it depends on properties that are [[Howto:Transmit_properties_over_MP|transmitted over MP]].
An example could be found in FGAddon 777-200: {{fgaddon aircraft url|777}}
* <code>777-200-set.xml</code> extends <code>777-200-common.xml</code> (this is not mandatory, just here to explain the inheritance. The -set.xml does/can include the model directly)
* <code>777-200-common.xml</code> references <code>Aircraft/777/Models/777-200.xml</code>
* <code>Models/777-200.xml</code> has an <code><sound><path>Aircraft/777/Sounds/mp-sound.xml</path></sound></code> reference
* <code>Sounds/mp-sound.xml</code> contains an ordinary sound config file with relative property paths resolved to the relative <code>/ai/multiplayer</code> nodes of the multiplayer instance.


== Recommended audio file formats ==
== Recommended audio file formats ==
601

edits

Navigation menu