[Gambas-user] gb.media - audio recording file is emptied when ending the program

vuott at tutanota.com vuott at tutanota.com
Thu Jan 18 00:45:51 CET 2024


...I observed that (in a CLI-application) it is necessary to provide for both the ".Stop" Method and the ".Close" Method of the "MediaPipeline" Class, to avoid getting an empty audio file.




18 gen 2024, 00:21 da user at lists.gambas-basic.org:

> Yes, now I no longer need in a CLI-application to declare the "MediaPipeline" instance variable as "global," nor to use the temporary file trick.
>
>
>
>
>
> 17 gen 2024, 23:07 da benoit.minisini at gambas-basic.org:
>
>> Le 17/01/2024 à 22:30, Benoît Minisini a écrit :
>>
>>>
>>> It seems that the filesink element restarts recording on its own, and so   by clearing the location, you prevent it from doing that.
>>>
>>> But why does it happen only with GUI, i.e. with a GUI event loop and not the default interpreter event loop?
>>>
>>
>> I think it's fixed in the last commit.
>>
>> I was wrong, using GUI or not didn't affect the problem. The bug was that pipelines were incorrectly restarted when freed!
>>
>> Because if you ask GStreamer to stop a pipeline whereas it is closed, the pipeline restarts.
>>
>> Tell me if it is ok for you.
>>
>> 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/20240118/d2f1d0b0/attachment.htm>


More information about the User mailing list