[gst-devel] OpenAL sink

Tristan Matthews tristan at sat.qc.ca
Mon Feb 1 18:15:46 CET 2010


2010/2/1 Babineau, Denis <Denis.Babineau at gtech.com>

> All 4 values are under [in/out] so I don’t know if it’s inputting
> recommended values with the option of tweaking them?
>
Have you looked at code in jackaudiosink? It has reasonable defaults. Also,
if you need more fine grained control over scheduling and synchronization,
your plugin should be derived from GstBaseAudioSink rather than GstAudioSink
(see section 20.1 of the plugin writer's guide:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/chapter-other-base.html#section-base-sink).
I'm not familiar enough with OpenAL to know if this is really necessary.

Good luck, this would be a welcome addition to gstreamer.

-Tristan

> Regarding latency_time/buffer_time, I’m leaving them as defaults (they can
> be modified thru the properties) and by default I get values of 10,000/0
> respectively with my test. Segsize/segtotal I take as “buffer size” and
> “number of buffers”, with OpenAL I have to pre-allocate buffers and while
> running I write to the buffer and queue them (and unqueue processed
> buffers). And so in my test I get 882 segsize and 20 segtotal so I
> pre-allocate 20 OpenAL buffers and fill/queue them during the write() call
> but what appears to be happening is that all the buffers gets full before
> even one buffer gets processed by OpenAL so I end up overrunning my buffers.
> Should I be stalling the write() call? Also, do those values make sense?
> When I normally stream a sound in OpenAL (not synced to video) I would
> allocate fairly large buffers, but not so many (2-3 buffers large enough to
> keep about 2-3 seconds buffered).  But here from what I understand it’s
> suggesting I allocate buffers of only a few samples each (i.e. 882 / 4 = 220
> samples).
>
>
>
> At this point I’m not too worried about latency/delays; I’m just trying to
> get something playing sound so that I get a better feel as to how this
> interface works.
>
>
>
> Any input appreciated!
>
>
>
> Thanks
>
> Denis
>
> CONFIDENTIALITY NOTICE: The contents of this email are confidential
> and for the exclusive use of the intended recipient. If you receive this
> email in error, please delete it from your system immediately and
> notify us either by email, telephone or fax. You should not copy,
> forward, or otherwise disclose the content of the email.
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-- 
Tristan Matthews
email: tristan at sat.qc.ca
web: http://tristanswork.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100201/1394a25e/attachment.htm>


More information about the gstreamer-devel mailing list