Hey Patrick,
I’m trying to write a package that creates a menu enabling to load an audio file for the image sequence or quicktime being played, working the same as when you drag the audio file to the window as a layer.
So I’m doing this, which is supposed to work for what I need, from what I understand from the Mu documentation:
commands.addToSource(audioFile)
extra_commands.displayFeedback("loaded: " + audioFile, 10.0)
This generates no error, however nothing happens apart from the displayfeedback, and the audio file does not appear in the sources when I press X. But that is also the case if I drag the audio file to the window, except that it does play in that case.
I also tried addSource(audioFile) which actually loads the audio as a source in the source list, but does not add it to the currently playing source.
Any idea or suggestion?
Thanks.