I need to play some audio files on linux (mp3 at the moment) and I am using ofSoundPlayer. If the load() method is called with streaming == false (the default) everything works but there is a noticeable delay while the song loads, may be a second or more, that causes the program to freeze for a while.
The obvious solution would be to set the streaming option to true, but unfortunately this causes the application to hang badly, it stops responding and has to be killed.
This can be reproduced easily with the soundPlayerExample in examples directory, just adding “, true” to the load call in setup()
Any hint on how to solve this? I’d like to avoid loading the song in a thread if possible (and that would not fix the delay).
OS is Ubuntu 18.04, OF version 0.10.0