[gst-devel] good "source" audio plugin template.

Stefan Kost ensonic at hora-obscura.de
Thu Mar 27 10:35:06 CET 2008


Quoting Phil Pellouchoud <Phil at slacker.com>:
> I want to write a source plugin that takes a file of some proprietary
> format and spews out PCM data that a speaker sink destination could
> accept.>
> 1.       What's the best starting point for that?  Is there some code I
> can just pilfer from somewhere?
You woundn't do a source. Let filesrc and the like do the reading.  
What you want to write is a parser/demuxer. If its really simple you  
can look at mulawdec/alawdec, maybe wavparse.

> 2.       Is there a generic cross-platform "speaker" sink (I don't want
> to use DirectSound since that's really MS specific)?
You can use autoaudiosink. It will pick an available audiosink at runtime.

> -phil


More information about the gstreamer-devel mailing list