How to properly switch between multiple audio sources while playing
Nirbheek Chauhan
nirbheek.chauhan at gmail.com
Thu Apr 4 17:07:42 UTC 2019
On Thu, Apr 4, 2019 at 9:55 PM OPENSOURCE Manuel Huber
<manuel.huber at opensource.tttech.com> wrote:
> The question is, how can I handle the actual case when I use filesrc +
> decodebin or playbin instead of audiotestsrc2. Would putting a valve
> there allow me to have the file playback PAUSED or even in NULL state
> while playing a tone?
>
> The pipeline should be "hidden" behind a simple API that allows to
> play a file (till the end) or play a tone for a specific duration (not
> at the same time).
>
> It sounds like a good idea for "stopping" the playback of the sine
> tone when the specified duration is over without introducing an ugly
> click / pop noise. Thanks for pointing me already to a good example ;)
>
>
Incidentally, that example handles the filesrc + decodebin case, which
is why it's so complicated. There's a lot of corner-cases in doing
that correctly.
Cheers,
Nirbheej
More information about the gstreamer-devel
mailing list