Class AudioEncoder
- Namespace
- GstAudio
- Assembly
- GstAudio-1.0.dll
public class AudioEncoder : Element, IObject, INotifyPropertyChanged, IDisposable, Preset, IHandle, GTypeProvider
- Inheritance
-
AudioEncoder
- Implements
-
- Inherited Members
-
Constructors
AudioEncoder()
AudioEncoder(params ConstructArgument[])
protected AudioEncoder(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
AudioEncoder(IntPtr, bool)
protected AudioEncoder(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
HardResyncPropertyDefinition
public static readonly Property<bool, AudioEncoder> HardResyncPropertyDefinition
Field Value
- Property<bool, AudioEncoder>
MarkGranulePropertyDefinition
public static readonly Property<bool, AudioEncoder> MarkGranulePropertyDefinition
Field Value
- Property<bool, AudioEncoder>
PerfectTimestampPropertyDefinition
public static readonly Property<bool, AudioEncoder> PerfectTimestampPropertyDefinition
Field Value
- Property<bool, AudioEncoder>
TolerancePropertyDefinition
public static readonly Property<long, AudioEncoder> TolerancePropertyDefinition
Field Value
- Property<long, AudioEncoder>
Properties
HardResync
public bool HardResync { get; set; }
Property Value
- bool
MarkGranule
public bool MarkGranule { get; }
Property Value
- bool
PerfectTimestamp
public bool PerfectTimestamp { 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
DeletePreset(string)
public bool DeletePreset(string name)
Parameters
name
string
Returns
- bool
FinishFrame(Buffer?, int)
public FlowReturn FinishFrame(Buffer? buffer, int samples)
Parameters
buffer
Buffer
samples
int
Returns
- FlowReturn
GetAudioInfo()
public AudioInfo GetAudioInfo()
Returns
- AudioInfo
GetDrainable()
public bool GetDrainable()
Returns
- bool
GetFrameMax()
Returns
- int
GetFrameSamplesMax()
public int GetFrameSamplesMax()
Returns
- int
GetFrameSamplesMin()
public int GetFrameSamplesMin()
Returns
- int
GetGType()
public static Type GetGType()
Returns
- Type
GetHardMin()
Returns
- bool
GetHardResync()
public bool GetHardResync()
Returns
- bool
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime min, out ClockTime max)
Parameters
min
ClockTime
max
ClockTime
GetLookahead()
public int GetLookahead()
Returns
- int
GetMarkGranule()
public bool GetMarkGranule()
Returns
- bool
public bool GetMeta(string name, string tag, out string value)
Parameters
name
string
tag
string
value
string
Returns
- bool
GetPerfectTimestamp()
public bool GetPerfectTimestamp()
Returns
- bool
GetPresetNames()
public string[] GetPresetNames()
Returns
- string[]
GetPropertyNames()
public string[] GetPropertyNames()
Returns
- string[]
GetTolerance()
public ClockTime GetTolerance()
Returns
- ClockTime
IsEditable()
[Version("1.6")]
public bool IsEditable()
Returns
- bool
LoadPreset(string)
public bool LoadPreset(string name)
Parameters
name
string
Returns
- bool
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tags
TagList
mode
TagMergeMode
Negotiate()
Returns
- bool
ProxyGetcaps(Caps?, Caps?)
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
caps
Caps
filter
Caps
Returns
- Caps
RenamePreset(string, string)
public bool RenamePreset(string oldName, string newName)
Parameters
oldName
string
newName
string
Returns
- bool
SavePreset(string)
public bool SavePreset(string name)
Parameters
name
string
Returns
- bool
SetAllocationCaps(Caps?)
[Version("1.10")]
public void SetAllocationCaps(Caps? allocationCaps)
Parameters
allocationCaps
Caps
SetDrainable(bool)
public void SetDrainable(bool enabled)
Parameters
enabled
bool
SetFrameMax(int)
public void SetFrameMax(int num)
Parameters
num
int
SetFrameSamplesMax(int)
public void SetFrameSamplesMax(int num)
Parameters
num
int
SetFrameSamplesMin(int)
public void SetFrameSamplesMin(int num)
Parameters
num
int
SetHardMin(bool)
public void SetHardMin(bool enabled)
Parameters
enabled
bool
SetHardResync(bool)
public void SetHardResync(bool enabled)
Parameters
enabled
bool
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime min, ClockTime max)
Parameters
min
ClockTime
max
ClockTime
SetLookahead(int)
public void SetLookahead(int num)
Parameters
num
int
SetMarkGranule(bool)
public void SetMarkGranule(bool enabled)
Parameters
enabled
bool
public bool SetMeta(string name, string tag, string? value)
Parameters
name
string
tag
string
value
string
Returns
- bool
public bool SetOutputFormat(Caps caps)
Parameters
caps
Caps
Returns
- bool
SetPerfectTimestamp(bool)
public void SetPerfectTimestamp(bool enabled)
Parameters
enabled
bool
SetTolerance(ClockTime)
public void SetTolerance(ClockTime tolerance)
Parameters
tolerance
ClockTime