Table of Contents

Class AudioRingBuffer

Namespace
GstAudio
Assembly
GstAudio-1.0.dll
public class AudioRingBuffer : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
AudioRingBuffer
Implements
Inherited Members

Constructors

AudioRingBuffer()

public AudioRingBuffer()

AudioRingBuffer(params ConstructArgument[])

protected AudioRingBuffer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

AudioRingBuffer(IntPtr, bool)

protected AudioRingBuffer(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

Acquire(AudioRingBufferSpec)

public bool Acquire(AudioRingBufferSpec spec)

Parameters

spec AudioRingBufferSpec

Returns

bool

Activate(bool)

public bool Activate(bool active)

Parameters

active bool

Returns

bool

Advance(uint)

public void Advance(uint advance)

Parameters

advance uint

Clear(int)

public void Clear(int segment)

Parameters

segment int

ClearAll()

public void ClearAll()

CloseDevice()

public bool CloseDevice()

Returns

bool

Commit(ref ulong, Span<byte>, int, ref int)

public uint Commit(ref ulong sample, Span<byte> data, int outSamples, ref int accum)

Parameters

sample ulong
data Span<byte>
outSamples int
accum int

Returns

uint

Convert(Format, long, Format, out long)

public bool Convert(Format srcFmt, long srcVal, Format destFmt, out long destVal)

Parameters

srcFmt Format
srcVal long
destFmt Format
destVal long

Returns

bool

DebugSpecBuff(AudioRingBufferSpec)

public static void DebugSpecBuff(AudioRingBufferSpec spec)

Parameters

spec AudioRingBufferSpec

DebugSpecCaps(AudioRingBufferSpec)

public static void DebugSpecCaps(AudioRingBufferSpec spec)

Parameters

spec AudioRingBufferSpec

Delay()

public uint Delay()

Returns

uint

DeviceIsOpen()

public bool DeviceIsOpen()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

IsAcquired()

public bool IsAcquired()

Returns

bool

IsActive()

public bool IsActive()

Returns

bool

IsFlushing()

public bool IsFlushing()

Returns

bool

MayStart(bool)

public void MayStart(bool allowed)

Parameters

allowed bool

OpenDevice()

public bool OpenDevice()

Returns

bool

ParseCaps(AudioRingBufferSpec, Caps)

public static bool ParseCaps(AudioRingBufferSpec spec, Caps caps)

Parameters

spec AudioRingBufferSpec
caps Caps

Returns

bool

Pause()

public bool Pause()

Returns

bool

Read(ulong, Span<byte>, out ClockTime)

public uint Read(ulong sample, Span<byte> data, out ClockTime timestamp)

Parameters

sample ulong
data Span<byte>
timestamp ClockTime

Returns

uint

Release()

public bool Release()

Returns

bool

SamplesDone()

public ulong SamplesDone()

Returns

ulong

SetCallback(AudioRingBufferCallback?)

[Version("1.12")]
public void SetCallback(AudioRingBufferCallback? cb)

Parameters

cb AudioRingBufferCallback

SetFlushing(bool)

public void SetFlushing(bool flushing)

Parameters

flushing bool

SetSample(ulong)

public void SetSample(ulong sample)

Parameters

sample ulong

SetTimestamp(int, ClockTime)

public void SetTimestamp(int readseg, ClockTime timestamp)

Parameters

readseg int
timestamp ClockTime

Start()

public bool Start()

Returns

bool

Stop()

public bool Stop()

Returns

bool