[Gambas-user] sdl2 application

Charles Bukowski charlesbukowski.italy at gmail.com
Wed May 4 06:50:46 CEST 2022


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




Il giorno mer 4 mag 2022 alle ore 03:31 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:

> On 5/3/22 15:15, Charles Bukowski wrote:
> > Hi, I have tried your code but I am getting "Null Object" error at
> runtime at line  "audio.play(sample)", after selecting file
> > in Dialog.OpenFile().
>
> Did you create the 'audio' object in the TestAudioPlay form's Open event?
>
> If yes, then immediately prior to "audio.play(sample)", insert the
> following two lines:
>    Debug "sample is null:";; IsNull(sample)
>    Debug "audio is null:";; IsNull(audio)
>
> What is the output?
>
>
> --
> Lee
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220504/ab5930d5/attachment.htm>


More information about the User mailing list