2018-01-02 7:22 GMT+01:00 Tim <[email protected]>:

>
>
> 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:
>
>
Wow, yeah, I remember! Didn't think that was it, but sure enough it seems
to work now \o/
And cleaner code too :)



> - 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...
>

Yeah, remember that too. The encoding confuses the hell out of me...
Should be consistent though. I'll change it to one or the other.

Otherwise I'm gearing up for a 3.0 release I think. Will prepare the
packaging and do more tests over the coming days. Whatever you manage to
fix put it in. If there are any known issues left we'll mention them in the
release note as know issues.

Regards,
Robert
------------------------------------------------------------------------------
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