|
From: Erik H. <er...@eh...> - 2019-11-11 09:55:24
|
On 11/10/19 2:18 PM, Sidi Liang wrote: > Hi all, > > 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. The way it works at this point is that a sound file is tied to a sound source. And you can't change the file associated with a source afterwards. So to play multiple files one after another you need to create a new source and stop, and remove the other one. I don't know how that would work using Nasal though, I'm unfamiliar with that part of the sound code. Erik -- http://www.adalin.com High performance synthesizer and virtual reality audio software. |