Table of Contents

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

constructArguments ConstructArgument[]

AudioDecoder(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AudioDecoder(CreationData data)

Parameters

data CreationData

AudioDecoder(AudioDecoderHandle)

protected AudioDecoder(AudioDecoderHandle handle)

Parameters

handle AudioDecoderHandle

Fields

MaxErrorsPropertyDefinition

public static readonly Property<int, AudioDecoder> MaxErrorsPropertyDefinition

Field Value

Property<int, AudioDecoder>

MinLatencyPropertyDefinition

public static readonly Property<long, AudioDecoder> MinLatencyPropertyDefinition

Field Value

Property<long, AudioDecoder>

PlcPropertyDefinition

public static readonly Property<bool, AudioDecoder> PlcPropertyDefinition

Field Value

Property<bool, AudioDecoder>

TolerancePropertyDefinition

public static readonly Property<long, AudioDecoder> TolerancePropertyDefinition

Field Value

Property<long, AudioDecoder>

Properties

MaxErrors

public int MaxErrors { get; set; }

Property Value

int

MinLatency

public long MinLatency { get; set; }

Property Value

long

Plc

public bool Plc { get; set; }

Property Value

bool

Tolerance

public long Tolerance { get; set; }

Property Value

long

Methods

AllocateOutputBuffer(nuint)

public Buffer AllocateOutputBuffer(nuint size)

Parameters

size nuint

Returns

Buffer

FinishFrame(Buffer?, int)

public FlowReturn FinishFrame(Buffer? buf, int frames)

Parameters

buf Buffer
frames int

Returns

FlowReturn

FinishSubframe(Buffer?)

[Version("1.16")]
public FlowReturn FinishSubframe(Buffer? buf)

Parameters

buf Buffer

Returns

FlowReturn

GetAudioInfo()

public AudioInfo GetAudioInfo()

Returns

AudioInfo

GetDelay()

public int GetDelay()

Returns

int

GetDrainable()

public bool GetDrainable()

Returns

bool

GetEstimateRate()

public int GetEstimateRate()

Returns

int

GetGType()

public static Type GetGType()

Returns

Type

GetLatency(out ClockTime, out ClockTime)

public void GetLatency(out ClockTime min, out ClockTime max)

Parameters

min ClockTime
max ClockTime

GetMaxErrors()

public int GetMaxErrors()

Returns

int

GetMinLatency()

public ClockTime GetMinLatency()

Returns

ClockTime

GetNeedsFormat()

public bool GetNeedsFormat()

Returns

bool

GetParseState(out bool, out bool)

public void GetParseState(out bool sync, out bool eos)

Parameters

sync bool
eos bool

GetPlc()

public bool GetPlc()

Returns

bool

GetPlcAware()

public int GetPlcAware()

Returns

int

GetTolerance()

public ClockTime GetTolerance()

Returns

ClockTime

MergeTags(TagList?, TagMergeMode)

public void MergeTags(TagList? tags, TagMergeMode mode)

Parameters

tags TagList
mode TagMergeMode

Negotiate()

public bool Negotiate()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed AudioDecoder instance for a given pointer.

public static AudioDecoder NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

AudioDecoder

NewWithProperties(ConstructArgument[])

Creates a new AudioDecoder and sets the properties specified by the construct arguments.

public static AudioDecoder NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

AudioDecoder

ProxyGetcaps(Caps?, Caps?)

[Version("1.6")]
public Caps ProxyGetcaps(Caps? caps, Caps? filter)

Parameters

caps Caps
filter Caps

Returns

Caps

SetAllocationCaps(Caps?)

[Version("1.10")]
public void SetAllocationCaps(Caps? allocationCaps)

Parameters

allocationCaps Caps

SetDrainable(bool)

public void SetDrainable(bool enabled)

Parameters

enabled bool

SetEstimateRate(bool)

public void SetEstimateRate(bool enabled)

Parameters

enabled bool

SetLatency(ClockTime, ClockTime)

public void SetLatency(ClockTime min, ClockTime max)

Parameters

min ClockTime
max ClockTime

SetMaxErrors(int)

public void SetMaxErrors(int num)

Parameters

num int

SetMinLatency(ClockTime)

public void SetMinLatency(ClockTime num)

Parameters

num ClockTime

SetNeedsFormat(bool)

public void SetNeedsFormat(bool enabled)

Parameters

enabled bool

SetOutputCaps(Caps)

[Version("1.16")]
public bool SetOutputCaps(Caps caps)

Parameters

caps Caps

Returns

bool

SetOutputFormat(AudioInfo)

public bool SetOutputFormat(AudioInfo info)

Parameters

info AudioInfo

Returns

bool

SetPlc(bool)

public void SetPlc(bool enabled)

Parameters

enabled bool

SetPlcAware(bool)

public void SetPlcAware(bool plc)

Parameters

plc bool

SetTolerance(ClockTime)

public void SetTolerance(ClockTime tolerance)

Parameters

tolerance ClockTime

SetUseDefaultPadAcceptcaps(bool)

[Version("1.6")]
public void SetUseDefaultPadAcceptcaps(bool use)

Parameters

use bool