Class AudioRingBuffer
- Namespace
- GstAudio
- Assembly
- GstAudio-1.0.dll
public class AudioRingBuffer : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
AudioRingBuffer
- Implements
- Inherited Members
Constructors
AudioRingBuffer(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 AudioRingBuffer(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AudioRingBuffer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AudioRingBuffer(CreationData data)
Parameters
dataCreationData
AudioRingBuffer(AudioRingBufferHandle)
protected AudioRingBuffer(AudioRingBufferHandle handle)
Parameters
handleAudioRingBufferHandle
Methods
Acquire(AudioRingBufferSpec)
public bool Acquire(AudioRingBufferSpec spec)
Parameters
specAudioRingBufferSpec
Returns
Activate(bool)
public bool Activate(bool active)
Parameters
activebool
Returns
Advance(uint)
public void Advance(uint advance)
Parameters
advanceuint
Clear(int)
public void Clear(int segment)
Parameters
segmentint
ClearAll()
public void ClearAll()
CloseDevice()
public bool CloseDevice()
Returns
Commit(ref ulong, Span<byte>, int, ref int)
public uint Commit(ref ulong sample, Span<byte> data, int outSamples, ref int accum)
Parameters
Returns
Convert(Format, long, Format, out long)
public bool Convert(Format srcFmt, long srcVal, Format destFmt, out long destVal)
Parameters
Returns
DebugSpecBuff(AudioRingBufferSpec)
public static void DebugSpecBuff(AudioRingBufferSpec spec)
Parameters
specAudioRingBufferSpec
DebugSpecCaps(AudioRingBufferSpec)
public static void DebugSpecCaps(AudioRingBufferSpec spec)
Parameters
specAudioRingBufferSpec
Delay()
public uint Delay()
Returns
DeviceIsOpen()
public bool DeviceIsOpen()
Returns
GetGType()
public static Type GetGType()
Returns
GetSegbase()
[Version("1.26")]
public ulong GetSegbase()
Returns
GetSegdone()
[Version("1.26")]
public ulong GetSegdone()
Returns
IsAcquired()
public bool IsAcquired()
Returns
IsActive()
public bool IsActive()
Returns
IsFlushing()
public bool IsFlushing()
Returns
MayStart(bool)
public void MayStart(bool allowed)
Parameters
allowedbool
NewFromPointer(nint, bool)
Creates a new managed AudioRingBuffer instance for a given pointer.
public static AudioRingBuffer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AudioRingBuffer and sets the properties specified by the construct arguments.
public static AudioRingBuffer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
OpenDevice()
public bool OpenDevice()
Returns
ParseCaps(AudioRingBufferSpec, Caps)
public static bool ParseCaps(AudioRingBufferSpec spec, Caps caps)
Parameters
specAudioRingBufferSpeccapsCaps
Returns
Pause()
public bool Pause()
Returns
Read(ulong, Span<byte>, out ClockTime)
public uint Read(ulong sample, Span<byte> data, out ClockTime timestamp)
Parameters
Returns
Release()
public bool Release()
Returns
SamplesDone()
public ulong SamplesDone()
Returns
SetCallback(AudioRingBufferCallback?)
[Version("1.12")]
public void SetCallback(AudioRingBufferCallback? cb)
Parameters
SetErrored()
[Version("1.24")]
public void SetErrored()
SetFlushing(bool)
public void SetFlushing(bool flushing)
Parameters
flushingbool
SetSample(ulong)
public void SetSample(ulong sample)
Parameters
sampleulong
SetSegdone(ulong)
[Version("1.26")]
public void SetSegdone(ulong segdone)
Parameters
segdoneulong
SetTimestamp(int, ClockTime)
public void SetTimestamp(int readseg, ClockTime timestamp)
Parameters
Start()
public bool Start()
Returns
Stop()
public bool Stop()