I'm trying to make a music player using nasal. As there is no docs for the sound playing fgcommand at all, I used the sound configuration xml for playing sounds. However, I found that it's impossible to change which file to play in runtime using nasal as it seems that only path are accepted in sound configuration xml instead of property, and I don't have write access to the sound configuration xml file. I even tried to find a way to make the aircraft use a xml file located in FGHOME but ended up in total failure.
By the way, the method to reset sound system in runtime described in wiki doesn't seems to work, at least in 2019.3.2.
- Code: Select all
fgcommand("reinit", props.Node.new({ subsystem: "fx" }))
Am I doing anything wrong here?
Thanks in advance!
Kind regards,
Sidi