Class AudioMixerSettings
- Namespace
- VisioForge.Core.Types.X.AudioEffects
- Assembly
- VisioForge.Core.dll
Configuration settings for the audio mixer, which combines multiple audio streams into a single output.
public class AudioMixerSettingsInheritance
Inherited Members
Properties
Format
Gets or sets the output audio format for the mixer. All input streams will be converted to this format before mixing.
public AudioInfoX Format { get; set; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when value is null. Use the
AudioInfoXctor to assign an explicit format instead of nulling the property.
IgnoreInactivePads
Gets or sets a value indicating whether the underlying GstAggregator
(audiomixer) should set ignore-inactive-pads=true.
public bool IgnoreInactivePads { get; set; }Property Value
Remarks
When true, the mixer skips sink pads that are inactive (have not
received a buffer or have sent EOS) and continues mixing from the remaining
active inputs. Required by consumers that handle multi-stream playback
where one stream may end before the others (e.g. MediaPlayerCoreX
additional audio streams, LiveVideoCompositor dynamic input add/remove).
When true, the mixer also starts at the running time of the first buffer any input delivers
(start-time-selection=first) and waits for that buffer without a timeout. Without it, a live mixer
whose inputs all deliver their first buffer later than the mixer latency (a camera or network source that
starts slowly) counts every input inactive and ends with End-Of-Stream before the first frame. Two visible
effects: the first output buffer carries the timestamp of the first input buffer instead of zero, and a
mixer whose inputs never deliver a buffer waits instead of ending with End-Of-Stream.
When false (default), the property is not set and GstAggregator's
default behaviour applies (wait for all sinks). This is the correct setting
for single-input mixer usages where an extended initial preroll without data
would otherwise be misinterpreted as the only sink being inactive,
causing the aggregator to emit EOS on its output before any buffer flows
downstream — and silently drop every subsequent buffer via sticky-EOS
rejection.
Latency
Gets or sets how long the mixer waits for late input on a live pipeline before it mixes
without it (the GstAggregator latency property).
public TimeSpan Latency { get; set; }Property Value
Remarks
A live input whose data arrives later than the latency it reports is replaced with silence for the missing part, which is heard as clicks or dropouts. The value is added to the pipeline latency. It has no effect when the pipeline is not live. Zero leaves only the latency the inputs report. Applied when the pipeline is built; a change on a running pipeline takes effect on the next start.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when value is negative or too large to express in nanoseconds.