[Gambas-user] sdl2 application
charlesbukowski.italy at gmail.com
Wed May 4 17:33:07 CEST 2022
It works now !!!! Sample has been played for more than 25 times without any
Il giorno mer 4 mag 2022 alle ore 15:04 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:
> On 5/4/22 00:50, Charles Bukowski wrote:
> > Yes :
> > Public Sub TestAudioPlay_Open()
> > audio = New Channel As "audio"
> > End
> > Debug output :
> > TestAudioPlay.PlayAudio.21: sample is null: False
> > TestAudioPlay.PlayAudio.22: audio is null: True
> In the TestAudioPlay.class file, that should be:
> Public Sub Form_Open() ' Not TestAudioPlay_Open()
> audio = New Channel As "audio"
> The TestAudioPlay form does not know its own name. It just knows it is a
> Form. A form's name is for the benefit of classes and
> modules external to that form. It allows us to call Public methods, and
> access Public properties, of distinct classes/modules.
> This is how we can call FMain.Close from TestAudioPlay.
> When designing/editing a form in the GUI editor, you can right-click on an
> object and then bring the mouse cursor over "Event"
> in the pop-up context-sensitive menu. That will show a list of the events
> that particular object raises. When you select a
> certain event, you will get an empty event handler subroutine in the
> form's class file/tab.
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User