The code above compiled and ran fine on my Ubuntu 16.04 virtual machine running QB64 1.2 (development build from www.qb64.org). I've attached the mp3 file I used as well as the binary that was generated. The ttf font I used is supposed to come by default with Ubuntu.
Please share the version you're using (both Ubuntu and QB64) as well as the files you had trouble loading.
Title: Re: Using SOUND and FONT files w/ Ubuntu?
Post by: SirCrow on May 31, 2018, 12:17:35 am
IDE ver. is 1.2 -- but development or not, I don't remember Ubuntu ver. is 18. ... something....how do I check it? Did it once, forgot how. Terminal, no doubt. Hate that terminal.
As far as sound files, do I need to change all \ to / in the paths? One line in my prog. looks like this: Snd.Name& = _SNDOPEN("SB_Sounds\J_Pop_002.mp3", "VOL")
Title: Re: Using SOUND and FONT files w/ Ubuntu?
Post by: FellippeHeitor on May 31, 2018, 12:22:22 am
Any parameter to _SNDOPEN that's not the file name has been deprecated, so you can drop "VOL" for good (and still be able to use _SNDVOL later on).
One thing to consider in Linux is that file names are case sensitive. Either \ / should make no difference as QB64 usually caters for that on its own, but you're on a / system, so why not go with it, right?
Check that Snd.Name& contains a value > 0 and then hit _SNDPLAY Snd.Name&, you should be good.
Did you run my sample?
Title: Re: Using SOUND and FONT files w/ Ubuntu?
Post by: SirCrow on May 31, 2018, 01:01:55 am
Thanks. Just ran your sample and, with the _SNDOPEN line active, I get this: