Table of Contents

Class AudioBuffer

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

Methods

Clip(BufferUnownedHandle, SegmentHandle, int, int)

Calls native function gst_audio_buffer_clip.

public static extern BufferOwnedHandle Clip(BufferUnownedHandle buffer, SegmentHandle segment, int rate, int bpf)

Parameters

buffer BufferUnownedHandle

Transfer ownership: Full Nullable: False

segment SegmentHandle

Transfer ownership: None Nullable: False

rate int

Transfer ownership: None Nullable: False

bpf int

Transfer ownership: None Nullable: False

Returns

BufferOwnedHandle

Transfer ownership: Full Nullable: True

Map(AudioBufferOwnedHandle, AudioInfoHandle, BufferHandle, MapFlags)

Calls native function gst_audio_buffer_map. Version: 1.16

[Version("1.16")]
public static extern bool Map(AudioBufferOwnedHandle buffer, AudioInfoHandle info, BufferHandle gstbuffer, MapFlags flags)

Parameters

buffer AudioBufferOwnedHandle

Transfer ownership: None Nullable: False

info AudioInfoHandle

Transfer ownership: None Nullable: False

gstbuffer BufferHandle

Transfer ownership: None Nullable: False

flags MapFlags

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ReorderChannels(BufferHandle, AudioFormat, int, AudioChannelPosition[], AudioChannelPosition[])

Calls native function gst_audio_buffer_reorder_channels.

public static extern bool ReorderChannels(BufferHandle buffer, AudioFormat format, int channels, AudioChannelPosition[] from, AudioChannelPosition[] to)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

format AudioFormat

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

from AudioChannelPosition[]

Transfer ownership: None Nullable: False

to AudioChannelPosition[]

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Truncate(BufferUnownedHandle, int, nuint, nuint)

Calls native function gst_audio_buffer_truncate. Version: 1.16

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

Parameters

buffer BufferUnownedHandle

Transfer ownership: Full Nullable: False

bpf int

Transfer ownership: None Nullable: False

trim nuint

Transfer ownership: None Nullable: False

samples nuint

Transfer ownership: None Nullable: False

Returns

BufferOwnedHandle

Transfer ownership: Full Nullable: False

Unmap(AudioBufferHandle)

Calls native method gst_audio_buffer_unmap. Version: 1.16

[Version("1.16")]
public static extern void Unmap(AudioBufferHandle buffer)

Parameters

buffer AudioBufferHandle

Transfer ownership: None Nullable: False