Howto:Reload sound configuration without restarting: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
(No difference)

Revision as of 21:40, 27 August 2008

As a massive timesaver for those working on sound configuration files, the following piece of nasal code can be entered in the nasal console (found on the Debug menu.)

fgcommand("reinit", props.Node.new({ subsystem: "fx" }))

Every time that line is executed, the sound subsystem ("fx") is restarted and the config file reloaded, enabling you to test your changes instantly. Just remember to actually save your sound config file each time you want to test so that FG sees the most recent changes.