Table of Contents

Class AudioBuffer

Namespace
GstAudio
Assembly
GstAudio-1.0.dll
public sealed class AudioBuffer
Inheritance
AudioBuffer
Inherited Members

Constructors

AudioBuffer()

public AudioBuffer()

AudioBuffer(AudioBufferOwnedHandle)

public AudioBuffer(AudioBufferOwnedHandle handle)

Parameters

handle AudioBufferOwnedHandle

Properties

Handle

public AudioBufferOwnedHandle Handle { get; }

Property Value

AudioBufferOwnedHandle

NPlanes

public int NPlanes { get; set; }

Property Value

int

NSamples

public nuint NSamples { get; set; }

Property Value

nuint

Methods

Clip(Buffer, Segment, int, int)

public static Buffer? Clip(Buffer buffer, Segment segment, int rate, int bpf)

Parameters

buffer Buffer
segment Segment
rate int
bpf int

Returns

Buffer

Equals(AudioBuffer?)

public bool Equals(AudioBuffer? other)

Parameters

other AudioBuffer

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Map(out AudioBuffer, AudioInfo, Buffer, MapFlags)

[Version("1.16")]
public static bool Map(out AudioBuffer buffer, AudioInfo info, Buffer gstbuffer, MapFlags flags)

Parameters

buffer AudioBuffer
info AudioInfo
gstbuffer Buffer
flags MapFlags

Returns

bool

Truncate(Buffer, int, nuint, nuint)

[Version("1.16")]
public static Buffer Truncate(Buffer buffer, int bpf, nuint trim, nuint samples)

Parameters

buffer Buffer
bpf int
trim nuint
samples nuint

Returns

Buffer

Unmap()

[Version("1.16")]
public void Unmap()