Le 02/01/2015 12:55, Ru Vuott a écrit :
> Ok, I understand,  but my problem is:
>
> with the old "gb.sdl.sound" component if I wanted to use .Stop() method to 
> stop the playing, i can put on the Form a Button and in Button_Click() event 
> i can write .Stop() method.
>
> Now, with SDL2 how can I create a Button and its active _Click() event ?
>
> Regards
> vuott
>

I don't understand your problem at all. I have just took the LCDLabel 
example, uncheck 'gb.sdl.sound', check 'gb.sdl2.audio', and it works.

(Note: except that now you must specify Sound.Frequency = 48000, because 
the SDL music player cannot resample the sound. But this is not related 
to your problem)

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

Reply via email to