[Gambas-user] is possible to "inglobe" data (audio, video, etc) into gambas code?
bsteers4 at gmail.com
Tue Sep 19 23:44:50 CEST 2023
On Tue, 19 Sep 2023, 19:57 Benoît Minisini, <
benoit.minisini at gambas-basic.org> wrote:
> Le 19/09/2023 à 20:41, Bruce Steers a écrit :
> > aah yes so you would want code something like this if you have a
> > clip.mp3 file in a folder called sounds in the project dir...
> > Public sClipFile As String = "./sounds/clip.mp3"
> > Public Sub Form_Load()
> > PlayInternalMusic(sClipFile)
> > End
> > Public Sub PlayInternalMusic(sFile As String)
> > Dim sTempName As String = File.Dir(Temp()) &/ File.Name(sFile)
> > If Not Exist(sTempName) Then Copy sFile To sTempName
> > Music.Load(sTempName)
> > Music.Play()
> > End
> > Respects
> > BruceS
> No, as it is done automatically by the interpreter.
> Benoît Minisini.
Oops sorry my mistake I misread "what it does" as "what we should do" 🙄
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User