|
From: Stuart B. <stu...@gm...> - 2019-11-13 10:03:39
|
On Mon, Nov 11, 2019 at 3:38 PM wrote: > > 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. > > i'd bet the ATCChatter addon in FGAddon would be a help and offer some hints on > a way to do exactly this... i assume it still works properly in today's code... Not quite sure why you'd want an in-sim music player, though I note that the G1000 include XM Radio, which I haven't bothered to implement. However, the tutorial system supports audio prompts, so will provide good code for this. -Stuart |