[Bug 641544] Baseaudiosink should default to max latency

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Mar 13 06:02:54 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=641544

--- Comment #15 from Arun Raghavan <arun at accosted.net> ---
I'm thinking it might make sense to expand the scope of this just a little bit.
What I propose we have:

1. A 'profile' property on baseaudiosink, which will be an enum of the profile
types we support: at the moment, I can the the value of having - music, event,
voice recording, voice call.

2. A GstAudioBaseSink->set_profile() class function that derived classes can
optionally provide, which will be used to communicate desired profiles

So a derived class would then be able to do all the things it needs to do to
set itself up for the given profile -- set stream properties, buffering
parameters, load effects, etc. as required.

The upside of doing things this way is that we would then provide a unified
interface for clients to set these parameters, without worrying about how it
would need to be done in the underlying sink.

The downside of this is that we're providing a higher level abstraction and we
lose some amount of control (buffering parameters getting automatically set up,
for example), and that we might have some cases that don't map into concepts we
provide (for example, the "system" stream type on Android doesn't match any of
the profiles I listed above).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list