One shot audio player.
Marianna Smidth Buschle
msb at qtec.com
Mon Jan 23 11:30:04 UTC 2023
Hi,
I'm not sure I understand the use case.
The way I see it you would normally just control that through the
pipeline state.
Put to PLAYING it plays, when it is done you get an EOS and it goes into
NULL.
If you want to replay you put to PLAYING again.
Best Regards
Marianna
On 19.01.2023 13.00, gstreamer-devel-request at lists.freedesktop.org wrote:
> Hello,
> My apologies to posting a question..
> I?m wanting to implement a one shot play regime to play a wave file (5
> seconds long) using filesrc or anything else appropriate to use.
> Is there any recommendations to how to achieve such using Python Glib?
>
> Something on the order
> filesrc start=1 location=sine.wav ! wavparse ! audioconvert ! alsasink
>
> I know filesrc doesn?t have a property start however, some method on
> starting the play where it is reset once the file buffer is empty before
> raising EOS. Any recommendations on how to implement such?
>
> I would be great to develop a plugin to do exactly that.
> oneshot location=sine.wav ! wavparse ! audioconvert ! alsasink
>
> Set property start to true and it plays then once finished start is
> effectively false. Just set property start to true and plays again.
--
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”
More information about the gstreamer-devel
mailing list