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

Benoît Minisini benoit.minisini at gambas-basic.org
Tue Jan 16 19:18:59 CET 2024


Le 16/01/2024 à 10:43, Claus Dietrich a écrit :
> I drafted the following snippet project for the Gambas-Buch which shall 
> demonstrate the use of a GStreamer TEE element. It plays a web radio 
> station which can be heard via the speaker and is recorded in a file. 
> When I start the program everything seems to be fine but when I end the 
> program the mp3 file is emptied (0 bytes). Why does this happen and how 
> can this be prevented?
> 
> Best regards
> 
> Claus
> 

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?

Regards,

-- 
Benoît Minisini.



More information about the User mailing list