-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I tried to load some .gig files (found on the web) using swami. All tries failed producing this message:
(swami1.exe:4760): GLib-GObject-WARNING **: invalid cast from `IpatchGigRegion' to `IpatchDLS2Region'
** (swami1.exe:4760): CRITICAL **: file ..\..\..\libinstpatch-1.0.0\libinstpatch\IpatchIter.c: line 749: should not be reached
(swami1.exe:4760): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** (swami1.exe:4760): CRITICAL **: Failed to load file 'D:\Musiques\SoundFont\Essai_GiG\Starbirth_Kudu_Shofar.gig': Invalid RIFF chunk id
The error is detected by ipatch_dls_reader_load_level_0() that returns FALSE because a chunk id is found incorrect, like this:
chunck ID=DLS , i=3
chunck ID=INFO, i=4
chunck ID=dlid, i=4
......
......
chunck ID=3lnk, i=4
chunck ID=z.., i=1 <--- char following `z` (at index 1) is parsed invalid because it is not an alpha-numeric char.
Because the same kind of error occurs on many other .gig file, I think the issue is a bug inside ipatch_dls_reader_load_level_0() (rather thinking that the bug is due to a corrupted .gig file).
Before doing any investigation inside ipatch_dls_reader_load_level_0() it is necessary to have information about gigasampler chunk format. Trying to find this information seems difficult.
Please, did you successfully loaded any .gig file using libinstpatch (or swami) ?
Have you some advise where we could find any specifications about gigasampler soundfont format ?