Reading an shmsink stream from an external application

Olivier Crête olivier.crete at collabora.com
Thu Jul 5 11:44:15 PDT 2012


Hi,

On Thu, 2012-07-05 at 08:52 -0700, Takido wrote:
> Hello,
> 
> I'm trying to feed an external application which deals sound to a special
> hardware with shmsink. I read all the doc I could find about shm (including
> the commented part of shmpipe.h) but I still don't understand they way I
> could get the audio stream in my external application.
> 
> How can I do that ?

Copy shmpipe.[ch] and shmalloc.[ch] into your application and use the
read API described in shmpipe.h (sp_client_* sp_close, sp_get_fd) to get
the buffers.

-- 
Olivier Crête
olivier.crete at collabora.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120705/44233bb5/attachment.pgp>


More information about the gstreamer-devel mailing list