On 01/01/2018 05:18 PM, Robert Jonsson wrote:

    If you can give me some details and maybe the soundfont in question and
      the song file trying to load it, maybe I can help.


It pretty much fails for all soundfonts I try, just to be sure I did a test song:
https://www.dropbox.com/s/q47cnqd8sl0jtrb/fluidtest3.tar.gz?dl=0

When loading this song it often works the first time but reloading it gives the following error:

SOUNDFONT FILENAME + PATH /home/ddskrjo/fluidtest3/juno106-0.1.sf2
--- END PARSE INIT DATA ---
fluidsynth: error: Unable to open file ""
fluidsynth: error: Couldn't load soundfont file
fluidsynth: error: Failed to load SoundFont ""

--
If you cant reproduce it in a few tries, your system is probably not affected and I need to look elsewhere for the solution

Gotcha! Welcome to corruption bug hell. Mwhahahaha...

The problem never happened for me :-(
But I believe I spotted the error :-)
Give this a try in git master now:

- Fix fluidsynth not loading font although it shows valid filename.

It was out-of-scope QString byte array data() or constData() usage
 in LoadFontWorker::execLoadFont.

The same thing I fixed a dozen of a few years ago one day, remember?
I thought we nailed every last one of them there thingies!
Yep. Sooo easy to miss that. Ever since Qt4 we've all been confused
 by that stuff.


Note:
LoadFontWorker::execLoadFont() uses toLocal8Bit() but
 FluidSynth::pushSoundfont() uses fromLatin1().

It should probably be more consistent? I didn't change it so far...


Proceed! Lemme know if it works.
Thanks for reminding us of this QString gotcha.
Got to be vigilant about that one.
Tim.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to