Aggregator


Object Hierarchy:

Gst.Audio.Aggregator Gst.Audio.Aggregator Gst.Audio.Aggregator Gst.Base.Aggregator Gst.Base.Aggregator Gst.Base.Aggregator->Gst.Audio.Aggregator Gst.Element Gst.Element Gst.Element->Gst.Base.Aggregator Gst.Object Gst.Object Gst.Object->Gst.Element GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gst.Object GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned

Description:

[ CCode ( type_id = "gst_audio_aggregator_get_type ()" ) ]
[ GIR ( name = "AudioAggregator" ) ]
[ Version ( since = "1.14" ) ]
public abstract class Aggregator : Aggregator

Subclasses must use (a subclass of) AggregatorPad for both their source and sink pads, add_static_pad_template_with_gtype is a convenient helper.

Aggregator can perform conversion on the data arriving on its sink pads, based on the format expected downstream: in order to enable that behaviour, the GType of the sink pads must either be a (subclass of) AggregatorConvertPad to use the default Converter implementation, or a subclass of AggregatorPad implementing convert_buffer.

To allow for the output caps to change, the mechanism is the same as above, with the GType of the source pad.

See GstAudioMixer for an example.

When conversion is enabled, Aggregator will accept any type of raw audio caps and perform conversion on the data arriving on its sink pads, with whatever downstream expects as the target format.

In case downstream caps are not fully fixated, it will use the first configured sink pad to finish fixating its source pad caps.

A notable exception for now is the sample rate, sink pads must have the same sample rate as either the downstream requirement, or the first configured pad, or a combination of both (when downstream specifies a range or a set of acceptable rates).

The samples_selected signal is provided with some additional information about the output buffer: - "offset" G_TYPE_UINT64 Offset in samples since segment start for the position that is next to be filled in the output buffer. - "frames" G_TYPE_UINT Number of frames per output buffer.

In addition the peek_next_sample function returns additional information in the info Structure of the returned sample: - "output-offset" G_TYPE_UINT64 Sample offset in output segment relative to the output segment's start where the current position of this input buffer would be placed - "position" G_TYPE_UINT current position in the input buffer in samples - "size" G_TYPE_UINT size of the input buffer in samples


Namespace: Gst.Audio

Content:

Properties:

Creation methods:

Methods:

Fields:

Inherited Members:

All known members inherited from class Gst.Base.Aggregator
All known members inherited from class Gst.Element
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object



2022 vala-language.org