[Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components

Benoît Minisini gambas at ...1...
Fri Jan 2 19:10:24 CET 2015


Le 02/01/2015 18:37, Ru Vuott a écrit :
> Hello Benoît,
>
> I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component.
>
> So, for example, this works:
>
> Public Sub Main()
>
>     With Music
>       .SoundFontPath = "/path/of/soundbank/file.sf2"
>       .Load("/path/of/my/file.mid")
>       .Play
>     End With
>
>     While Music.State = Music.Playing
>        Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000))
>     Wend
>
> End
>
>
> - - - - -- - --- -- - - - - - - - - -
>
> This does NOT work: it doesn't find the soundbank file.sf2 :
>
> Public Sub Button1_Click()
>
>     With Music
>       .SoundFontPath = "/path/of/soundbank/file.sf2"
>       .Load("/path/of/my/file.mid")
>       .Play
>     End With
>
> End
>
> I don't understand why.
>
>
>
> Regards
> vuott
>

So am I, but please post a little project so that I can test.

Regards,

-- 
Benoît Minisini




More information about the User mailing list