GstAudioSrc: Automatic format negotiation

marcin at saepia.net marcin at saepia.net
Sun Aug 14 18:33:38 UTC 2016


Hello,

I would like to work on improving directsoundsrc and other windows drivers
as now they are not too reliable.

For example, I have a semi-professional soundcard that can hang GSt when it
is accessed via directsoundsrc.

I suspect most of the issues are due to format incompatibilities.

The thing I do not fully understand in the GStreamer architecture is that
in GstAudioSrc, prepare virtual method receives a ring buffer spec that
already contains information about desired sample format. It looks like a
contradiction to "please the highest quality you support".

Does this mean that it is an application task to set caps, and check if
starting playback hasn't failed, and retry with different caps?

If not, and such negotiation is done internally, what is the origin on caps
passed to the prepare  virtual method and how can I achieve behaviour that
automatically picks up the best possible quality?

Or maybe that is just not achievable with GstAudioSrc?

Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160814/f46d9e90/attachment.html>


More information about the gstreamer-devel mailing list