[gst-devel] How to include audio file in compiled code?

Ole Kirkeby ole.kirkeby at ovi.com
Wed Aug 11 09:30:08 CEST 2010


No, I didn't try appsrc. I missed it. I blame Google. Or Bing. Or perhaps I should just admit I am an amateur. Thanks for the quick reply.

ole

> ----- Original message ----- 
> From: "Tim-Philipp Müller‎" <t.i.m at zen.co.uk>
> To: gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] How to include audio file in compiled code?
> Date: Tue, 10 Aug 2010 16:37:26 +0100
> 
> 
>On Tue, 2010-08-10 at 18:29 +0300, Ole Kirkeby wrote:
> 
> > This is probably not so much related to GStreamer but more about how
> > to link resources into projects. I have a .wav file used as an
> > alertsound in a Qt project, and I want to include it with the
> > executable so I don’t have to distribute it separately. There is a
> > mechanism for doing this in the Qt Resource System, with an alias tag
> > in the file attribute, but it doesn’t work, presumably because
> > GStreamer bypasses the Qt framework when it sees filesrc in
> > gst_parse_launch. More specifically, the code
> >
> > pipeline = gst_parse_launch("filesrc location=alertsound1.wav !
> > wavparse ! autoaudiosink", &error);
> >
> > always causes the file alertsound1.wav to be read from the working
> > directory regardless of which alias I have set up for it.  I also
> > tried fdsrc instead of filesrc but I couldn’t make that work either.
> 
> Have you tried appsrc as well?
> 
> Cheers
>   -Tim
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

--------------------------------------------------------------
Ovi Mail: Making email access easy
http://mail.ovi.com





More information about the gstreamer-devel mailing list