Class AudioDecoder
- Namespace
- GstAudio
- Assembly
- GstAudio-1.0.dll
public class AudioDecoder : Element, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
AudioDecoder
- Implements
- Inherited Members
Constructors
AudioDecoder(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public AudioDecoder(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AudioDecoder(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AudioDecoder(CreationData data)
Parameters
dataCreationData
AudioDecoder(AudioDecoderHandle)
protected AudioDecoder(AudioDecoderHandle handle)
Parameters
handleAudioDecoderHandle
Fields
MaxErrorsPropertyDefinition
public static readonly Property<int, AudioDecoder> MaxErrorsPropertyDefinition
Field Value
MinLatencyPropertyDefinition
public static readonly Property<long, AudioDecoder> MinLatencyPropertyDefinition
Field Value
PlcPropertyDefinition
public static readonly Property<bool, AudioDecoder> PlcPropertyDefinition
Field Value
TolerancePropertyDefinition
public static readonly Property<long, AudioDecoder> TolerancePropertyDefinition
Field Value
Properties
MaxErrors
public int MaxErrors { get; set; }
Property Value
MinLatency
public long MinLatency { get; set; }
Property Value
Plc
public bool Plc { get; set; }
Property Value
Tolerance
public long Tolerance { get; set; }
Property Value
Methods
AllocateOutputBuffer(nuint)
public Buffer AllocateOutputBuffer(nuint size)
Parameters
sizenuint
Returns
FinishFrame(Buffer?, int)
public FlowReturn FinishFrame(Buffer? buf, int frames)
Parameters
Returns
FinishSubframe(Buffer?)
[Version("1.16")]
public FlowReturn FinishSubframe(Buffer? buf)
Parameters
bufBuffer
Returns
GetAudioInfo()
public AudioInfo GetAudioInfo()
Returns
GetDelay()
public int GetDelay()
Returns
GetDrainable()
public bool GetDrainable()
Returns
GetEstimateRate()
public int GetEstimateRate()
Returns
GetGType()
public static Type GetGType()
Returns
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime min, out ClockTime max)
Parameters
GetMaxErrors()
public int GetMaxErrors()
Returns
GetMinLatency()
public ClockTime GetMinLatency()
Returns
GetNeedsFormat()
public bool GetNeedsFormat()
Returns
GetParseState(out bool, out bool)
public void GetParseState(out bool sync, out bool eos)
Parameters
GetPlc()
public bool GetPlc()
Returns
GetPlcAware()
public int GetPlcAware()
Returns
GetTolerance()
public ClockTime GetTolerance()
Returns
MergeTags(TagList?, TagMergeMode)
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tagsTagListmodeTagMergeMode
Negotiate()
public bool Negotiate()
Returns
NewFromPointer(nint, bool)
Creates a new managed AudioDecoder instance for a given pointer.
public static AudioDecoder NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AudioDecoder and sets the properties specified by the construct arguments.
public static AudioDecoder NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyGetcaps(Caps?, Caps?)
[Version("1.6")]
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
Returns
SetAllocationCaps(Caps?)
[Version("1.10")]
public void SetAllocationCaps(Caps? allocationCaps)
Parameters
allocationCapsCaps
SetDrainable(bool)
public void SetDrainable(bool enabled)
Parameters
enabledbool
SetEstimateRate(bool)
public void SetEstimateRate(bool enabled)
Parameters
enabledbool
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime min, ClockTime max)
Parameters
SetMaxErrors(int)
public void SetMaxErrors(int num)
Parameters
numint
SetMinLatency(ClockTime)
public void SetMinLatency(ClockTime num)
Parameters
numClockTime
SetNeedsFormat(bool)
public void SetNeedsFormat(bool enabled)
Parameters
enabledbool
SetOutputCaps(Caps)
[Version("1.16")]
public bool SetOutputCaps(Caps caps)
Parameters
capsCaps
Returns
SetOutputFormat(AudioInfo)
public bool SetOutputFormat(AudioInfo info)
Parameters
infoAudioInfo
Returns
SetPlc(bool)
public void SetPlc(bool enabled)
Parameters
enabledbool
SetPlcAware(bool)
public void SetPlcAware(bool plc)
Parameters
plcbool
SetTolerance(ClockTime)
public void SetTolerance(ClockTime tolerance)
Parameters
toleranceClockTime
SetUseDefaultPadAcceptcaps(bool)
[Version("1.6")]
public void SetUseDefaultPadAcceptcaps(bool use)
Parameters
usebool