The alternative is to write "Music.SoundFontPath"  in  Form_Open()  routine:

Public Sub Form_Open()

   Music.SoundFontPath = "/path/of/sounbank/file.sf2"
.....
.....
End

In this way it works without boolean variable and without IF.

Regards
vuott




--------------------------------------------
Ven 2/1/15, Benoît Minisini <gam...@users.sourceforge.net> ha scritto:

 Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with 
graphic components
 A: "mailing list for gambas users" <gambas-user@lists.sourceforge.net>
 Data: Venerdì 2 gennaio 2015, 21:47
 
 Le 02/01/2015 21:28, Ru
 Vuott a écrit :
 > ...well,
 >
 > I managed to run the
 Midi project with Volume setting.
 >
 > At present, we have to change Volume value
 only after we have started the playing.
 >
 > So, I had to put a
 conditional and a Boolean variable (bleah !) to avoid
 interference on the Slider when you open the form.
 >
 > Here the second
 project.
 >
 >
 Regards
 > vuott
 >
 
 I can prevent that...
 
 -- 
 Benoît Minisini
 
 ------------------------------------------------------------------------------
 Dive into the World of Parallel Programming!
 The Go Parallel Website,
 sponsored by Intel
 and developed in partnership with Slashdot Media, is your
 hub for all things parallel software
 development, from weekly thought
 leadership
 blogs to news, videos, case studies, tutorials and more.
 Take a
 look and join the conversation now.
 http://goparallel.sourceforge.net
 _______________________________________________
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to