good "source" audio plugin template.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

good "source" audio plugin template.

Phil Pellouchoud

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?

2.       Is there a generic cross-platform “speaker” sink (I don’t want to use DirectSound since that’s really MS specific)?

 

-phil


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: good "source" audio plugin template.

Stefan Sauer
hi,

Quoting Phil Pellouchoud <[hidden email]>:
> 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
>

Stefan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

oss source plugin...

Phil Pellouchoud
I am trying to write a source plugin and I want to base it on
GstAudioSrc (after reading the documentation), and I downloaded the
latest "good" plugins and found that
"...\gstreamer\gst-plugins-good\sys\sunaudio" uses this.  However, this
is not included in the
"...\gst-plugins-good-0.10.7\win32\vs8\gst-plugins-good.sln" and I was
just curious why.

Also, is this the best source plugin based on GstAudioSrc to copy (i.e.
use as a starting point) ?

Thanks.

-phil

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel