Class AudioEncoder
- Namespace
- GstAudio
- Assembly
- GstAudio-1.0.dll
public class AudioEncoder : Element, Preset, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
AudioEncoder
- Implements
- Inherited Members
Constructors
AudioEncoder(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 AudioEncoder(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AudioEncoder(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AudioEncoder(CreationData data)
Parameters
dataCreationData
AudioEncoder(AudioEncoderHandle)
protected AudioEncoder(AudioEncoderHandle handle)
Parameters
handleAudioEncoderHandle
Fields
HardResyncPropertyDefinition
public static readonly Property<bool, AudioEncoder> HardResyncPropertyDefinition
Field Value
MarkGranulePropertyDefinition
public static readonly Property<bool, AudioEncoder> MarkGranulePropertyDefinition
Field Value
PerfectTimestampPropertyDefinition
public static readonly Property<bool, AudioEncoder> PerfectTimestampPropertyDefinition
Field Value
TolerancePropertyDefinition
public static readonly Property<long, AudioEncoder> TolerancePropertyDefinition
Field Value
Properties
HardResync
public bool HardResync { get; set; }
Property Value
MarkGranule
public bool MarkGranule { get; }
Property Value
PerfectTimestamp
public bool PerfectTimestamp { get; set; }
Property Value
Tolerance
public long Tolerance { get; set; }
Property Value
Methods
AllocateOutputBuffer(nuint)
public Buffer AllocateOutputBuffer(nuint size)
Parameters
sizenuint
Returns
DeletePreset(string)
public bool DeletePreset(string name)
Parameters
namestring
Returns
FinishFrame(Buffer?, int)
public FlowReturn FinishFrame(Buffer? buffer, int samples)
Parameters
Returns
GetAudioInfo()
public AudioInfo GetAudioInfo()
Returns
GetDrainable()
public bool GetDrainable()
Returns
GetFrameMax()
public int GetFrameMax()
Returns
GetFrameSamplesMax()
public int GetFrameSamplesMax()
Returns
GetFrameSamplesMin()
public int GetFrameSamplesMin()
Returns
GetGType()
public static Type GetGType()
Returns
GetHardMin()
public bool GetHardMin()
Returns
GetHardResync()
public bool GetHardResync()
Returns
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime min, out ClockTime max)
Parameters
GetLookahead()
public int GetLookahead()
Returns
GetMarkGranule()
public bool GetMarkGranule()
Returns
GetMeta(string, string, out string)
public bool GetMeta(string name, string tag, out string value)
Parameters
Returns
GetPerfectTimestamp()
public bool GetPerfectTimestamp()
Returns
GetPresetNames()
public string[] GetPresetNames()
Returns
- string[]
GetPropertyNames()
public string[] GetPropertyNames()
Returns
- string[]
GetTolerance()
public ClockTime GetTolerance()
Returns
IsEditable()
[Version("1.6")]
public bool IsEditable()
Returns
LoadPreset(string)
public bool LoadPreset(string name)
Parameters
namestring
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 AudioEncoder instance for a given pointer.
public static AudioEncoder NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AudioEncoder and sets the properties specified by the construct arguments.
public static AudioEncoder NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyGetcaps(Caps?, Caps?)
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
Returns
RenamePreset(string, string)
public bool RenamePreset(string oldName, string newName)
Parameters
Returns
SavePreset(string)
public bool SavePreset(string name)
Parameters
namestring
Returns
SetAllocationCaps(Caps?)
[Version("1.10")]
public void SetAllocationCaps(Caps? allocationCaps)
Parameters
allocationCapsCaps
SetDrainable(bool)
public void SetDrainable(bool enabled)
Parameters
enabledbool
SetFrameMax(int)
public void SetFrameMax(int num)
Parameters
numint
SetFrameSamplesMax(int)
public void SetFrameSamplesMax(int num)
Parameters
numint
SetFrameSamplesMin(int)
public void SetFrameSamplesMin(int num)
Parameters
numint
SetHardMin(bool)
public void SetHardMin(bool enabled)
Parameters
enabledbool
SetHardResync(bool)
public void SetHardResync(bool enabled)
Parameters
enabledbool
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime min, ClockTime max)
Parameters
SetLookahead(int)
public void SetLookahead(int num)
Parameters
numint
SetMarkGranule(bool)
public void SetMarkGranule(bool enabled)
Parameters
enabledbool
SetMeta(string, string, string?)
public bool SetMeta(string name, string tag, string? value)
Parameters
Returns
SetOutputFormat(Caps)
public bool SetOutputFormat(Caps caps)
Parameters
capsCaps
Returns
SetPerfectTimestamp(bool)
public void SetPerfectTimestamp(bool enabled)
Parameters
enabledbool
SetTolerance(ClockTime)
public void SetTolerance(ClockTime tolerance)
Parameters
toleranceClockTime