[Gambas-user] gb.media - audio recording file is emptied when ending the program
vuott at tutanota.com
vuott at tutanota.com
Wed Jan 17 13:09:16 CET 2024
Well, with a CLI-program the created file is not empty, only if the "MediaPipeline" instance variable is "global" (as Claus had already pointed out). In that case, however, I found that in order to make the program terminate, it is necessary to impose the "Quit" function.
Instead, if this variable is "local," an empty audio file is generated. I had known about this problem for a long time, and to solve it, I adopted the temporary support file stratagem. If the variable is "local," the program ends regularly.
17 gen 2024, 10:44 da benoit.minisini at gambas-basic.org:
> Le 17/01/2024 à 10:19, Claus Dietrich a écrit :
>
>> Am 16.01.24 um 19:18 schrieb Benoît Minisini:
>>
>>> I have just tested your code, but without GUI, and the mp3 file is correctly written to disk as expected.
>>>
>>> P.S. Can you post a full project as attachment instead of just pasting a piece of code?
>>>
>>
>> Done! By mistake I sent it to your personal instead of ML-user account.
>>
>> Regards
>>
>> Claus
>>
>>
>
> I confirm that your GUI program generates a void file. Strange that it works without GUI!
>
> Regards,
>
> --
> Benoît Minisini.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20240117/f2a99d4c/attachment.htm>
More information about the User
mailing list