I am trying to simulate an elevator as an art installation. As the sound function in XoJo doesn’t seem to work with Pi, is there a way to play two different sound files at the same time on the Pi4 via Xojo? For example, elevator music with sound effects overlaid. Thanks for any help.
Thanks for the suggestion. I tried that, and was able to play one sound file, but the XOJO program was then unresponsive until the sound stopped playing. I was unable to play a second file at the same time as the first.
Interactive means; keep running so that you can send control characters and data (string) to the shell while it’s running using shell.write() or shell.writeline()
This way to can send; stop, pause, start, volume etc…
s = new shell
s.ExecuteMode = Shell.ExecuteModes.Interactive
s.Canonical = True // ALLOW CONTROL characters to be send, important!
s.Execute("/usr/bin/omxplayer ""/home/pi/Desktop/Music/‘03 Just Like Heaven 1.mp3""")
s.WriteLine("p") // pause you may get a datavailable event giving you some info about the state of
// omxplayer.
you need the FULL shell path to omxplayer and to the mp3 file in quotes (if it has spaces)