Need an example for "How to play an audio data which is in memory as buffer" ?

Tim Müller tim at centricular.com
Tue Jul 21 01:21:41 PDT 2015


On Tue, 2015-07-21 at 00:45 -0700, Devesh Nagar wrote:

Hi,

> I have played audio files like mp3 and sbc format files by simply defining
> decoder/converter and giving that file to gstreamer.
> But here I dont want to play directly with file.
> I want to open the audio file and read the content in to buffer, and feed
> that buffer into gstreamer to play.

You can either feed your memory to the pipeline via appsrc, or you can
use giostreamsrc with a GMemoryInputStream like in this code:
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/check/pipelines/gio.c#n60

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list