Table of Contents

Class Functions

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

Methods

AudioBufferClip(BufferUnownedHandle, SegmentHandle, int, int)

Calls native function gst_audio_buffer_clip.

public static extern BufferOwnedHandle AudioBufferClip(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

AudioBufferMap(AudioBufferOwnedHandle, AudioInfoHandle, BufferHandle, MapFlags)

Calls native function gst_audio_buffer_map. Version: 1.16

[Version("1.16")]
public static extern bool AudioBufferMap(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

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

Calls native function gst_audio_buffer_reorder_channels.

public static extern bool AudioBufferReorderChannels(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

AudioBufferTruncate(BufferUnownedHandle, int, nuint, nuint)

Calls native function gst_audio_buffer_truncate. Version: 1.16

[Version("1.16")]
public static extern BufferOwnedHandle AudioBufferTruncate(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

AudioChannelGetFallbackMask(int)

Calls native function gst_audio_channel_get_fallback_mask. Version: 1.8

[Version("1.8")]
public static extern ulong AudioChannelGetFallbackMask(int channels)

Parameters

channels int

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

AudioChannelMixerNew(AudioChannelMixerFlags, AudioFormat, int, IntPtr, int, IntPtr)

Calls native function gst_audio_channel_mixer_new.

public static extern AudioChannelMixerUnownedHandle AudioChannelMixerNew(AudioChannelMixerFlags flags, AudioFormat format, int inChannels, IntPtr inPosition, int outChannels, IntPtr outPosition)

Parameters

flags AudioChannelMixerFlags

Transfer ownership: None Nullable: False

format AudioFormat

Transfer ownership: None Nullable: False

inChannels int

Transfer ownership: None Nullable: False

inPosition IntPtr

Transfer ownership: None Nullable: False

outChannels int

Transfer ownership: None Nullable: False

outPosition IntPtr

Transfer ownership: None Nullable: False

Returns

AudioChannelMixerUnownedHandle

Transfer ownership: None Nullable: False

AudioChannelMixerNewWithMatrix(AudioChannelMixerFlags, AudioFormat, int, int, ref float)

Calls native function gst_audio_channel_mixer_new_with_matrix. Version: 1.14

[Version("1.14")]
public static extern AudioChannelMixerUnownedHandle AudioChannelMixerNewWithMatrix(AudioChannelMixerFlags flags, AudioFormat format, int inChannels, int outChannels, ref float matrix)

Parameters

flags AudioChannelMixerFlags

Transfer ownership: None Nullable: False

format AudioFormat

Transfer ownership: None Nullable: False

inChannels int

Transfer ownership: None Nullable: False

outChannels int

Transfer ownership: None Nullable: False

matrix float

Transfer ownership: Full Nullable: True

Returns

AudioChannelMixerUnownedHandle

Transfer ownership: None Nullable: False

AudioChannelPositionsFromMask(int, ulong, AudioChannelPosition[])

Calls native function gst_audio_channel_positions_from_mask.

public static extern bool AudioChannelPositionsFromMask(int channels, ulong channelMask, AudioChannelPosition[] position)

Parameters

channels int

Transfer ownership: None Nullable: False

channelMask ulong

Transfer ownership: None Nullable: False

position AudioChannelPosition[]

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioChannelPositionsToMask(AudioChannelPosition[], int, bool, out ulong)

Calls native function gst_audio_channel_positions_to_mask.

public static extern bool AudioChannelPositionsToMask(AudioChannelPosition[] position, int channels, bool forceOrder, out ulong channelMask)

Parameters

position AudioChannelPosition[]

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

forceOrder bool

Transfer ownership: None Nullable: False

channelMask ulong

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioChannelPositionsToString(AudioChannelPosition[], int)

Calls native function gst_audio_channel_positions_to_string. Version: 1.10

[Version("1.10")]
public static extern NonNullableUtf8StringOwnedHandle AudioChannelPositionsToString(AudioChannelPosition[] position, int channels)

Parameters

position AudioChannelPosition[]

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

AudioChannelPositionsToValidOrder(AudioChannelPosition[], int)

Calls native function gst_audio_channel_positions_to_valid_order.

public static extern bool AudioChannelPositionsToValidOrder(AudioChannelPosition[] position, int channels)

Parameters

position AudioChannelPosition[]

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioCheckValidChannelPositions(AudioChannelPosition[], int, bool)

Calls native function gst_audio_check_valid_channel_positions.

public static extern bool AudioCheckValidChannelPositions(AudioChannelPosition[] position, int channels, bool forceOrder)

Parameters

position AudioChannelPosition[]

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

forceOrder bool

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioClippingMetaApiGetType()

Calls native function gst_audio_clipping_meta_api_get_type.

public static extern nuint AudioClippingMetaApiGetType()

Returns

nuint

Transfer ownership: None Nullable: False

AudioClippingMetaGetInfo()

Calls native function gst_audio_clipping_meta_get_info.

public static extern MetaInfoUnownedHandle AudioClippingMetaGetInfo()

Returns

MetaInfoUnownedHandle

Transfer ownership: None Nullable: False

AudioDownmixMetaApiGetType()

Calls native function gst_audio_downmix_meta_api_get_type.

public static extern nuint AudioDownmixMetaApiGetType()

Returns

nuint

Transfer ownership: None Nullable: False

AudioDownmixMetaGetInfo()

Calls native function gst_audio_downmix_meta_get_info.

public static extern MetaInfoUnownedHandle AudioDownmixMetaGetInfo()

Returns

MetaInfoUnownedHandle

Transfer ownership: None Nullable: False

AudioFormatBuildInteger(bool, int, int, int)

Calls native function gst_audio_format_build_integer.

public static extern AudioFormat AudioFormatBuildInteger(bool sign, int endianness, int width, int depth)

Parameters

sign bool

Transfer ownership: None Nullable: False

endianness int

Transfer ownership: None Nullable: False

width int

Transfer ownership: None Nullable: False

depth int

Transfer ownership: None Nullable: False

Returns

AudioFormat

Transfer ownership: None Nullable: False

AudioFormatFillSilence(AudioFormatInfoHandle, ref byte, nuint)

Calls native function gst_audio_format_fill_silence.

public static extern void AudioFormatFillSilence(AudioFormatInfoHandle info, ref byte dest, nuint length)

Parameters

info AudioFormatInfoHandle

Transfer ownership: None Nullable: False

dest byte

Transfer ownership: None Nullable: False

length nuint

Transfer ownership: None Nullable: False

AudioFormatFromString(NonNullableUtf8StringHandle)

Calls native function gst_audio_format_from_string.

public static extern AudioFormat AudioFormatFromString(NonNullableUtf8StringHandle format)

Parameters

format NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

AudioFormat

Transfer ownership: None Nullable: False

AudioFormatGetInfo(AudioFormat)

Calls native function gst_audio_format_get_info.

public static extern AudioFormatInfoUnownedHandle AudioFormatGetInfo(AudioFormat format)

Parameters

format AudioFormat

Transfer ownership: None Nullable: False

Returns

AudioFormatInfoUnownedHandle

Transfer ownership: None Nullable: False

AudioFormatInfoGetType()

Calls native function gst_audio_format_info_get_type.

public static extern nuint AudioFormatInfoGetType()

Returns

nuint

Transfer ownership: None Nullable: False

AudioFormatToString(AudioFormat)

Calls native function gst_audio_format_to_string.

public static extern NonNullableUtf8StringUnownedHandle AudioFormatToString(AudioFormat format)

Parameters

format AudioFormat

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

AudioGetChannelReorderMap(int, AudioChannelPosition[], AudioChannelPosition[], ref int)

Calls native function gst_audio_get_channel_reorder_map.

public static extern bool AudioGetChannelReorderMap(int channels, AudioChannelPosition[] from, AudioChannelPosition[] to, ref int reorderMap)

Parameters

channels int

Transfer ownership: None Nullable: False

from AudioChannelPosition[]

Transfer ownership: None Nullable: False

to AudioChannelPosition[]

Transfer ownership: None Nullable: False

reorderMap int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioIec61937FrameSize(AudioRingBufferSpecHandle)

Calls native function gst_audio_iec61937_frame_size.

public static extern uint AudioIec61937FrameSize(AudioRingBufferSpecHandle spec)

Parameters

spec AudioRingBufferSpecHandle

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

AudioIec61937Payload(ref byte, uint, ref byte, uint, AudioRingBufferSpecHandle, int)

Calls native function gst_audio_iec61937_payload.

public static extern bool AudioIec61937Payload(ref byte src, uint srcN, ref byte dst, uint dstN, AudioRingBufferSpecHandle spec, int endianness)

Parameters

src byte

Transfer ownership: None Nullable: False

srcN uint

Transfer ownership: None Nullable: False

dst byte

Transfer ownership: None Nullable: False

dstN uint

Transfer ownership: None Nullable: False

spec AudioRingBufferSpecHandle

Transfer ownership: None Nullable: False

endianness int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

AudioLevelMetaApiGetType()

Calls native function gst_audio_level_meta_api_get_type. Version: 1.20

[Version("1.20")]
public static extern nuint AudioLevelMetaApiGetType()

Returns

nuint

Transfer ownership: None Nullable: False

AudioLevelMetaGetInfo()

Calls native function gst_audio_level_meta_get_info. Version: 1.20

[Version("1.20")]
public static extern MetaInfoUnownedHandle AudioLevelMetaGetInfo()

Returns

MetaInfoUnownedHandle

Transfer ownership: None Nullable: False

AudioMakeRawCaps(AudioFormat[], uint, AudioLayout)

Calls native function gst_audio_make_raw_caps. Version: 1.18

[Version("1.18")]
public static extern CapsOwnedHandle AudioMakeRawCaps(AudioFormat[] formats, uint len, AudioLayout layout)

Parameters

formats AudioFormat[]

Transfer ownership: None Nullable: True

len uint

Transfer ownership: None Nullable: False

layout AudioLayout

Transfer ownership: None Nullable: False

Returns

CapsOwnedHandle

Transfer ownership: Full Nullable: False

AudioMetaApiGetType()

Calls native function gst_audio_meta_api_get_type.

public static extern nuint AudioMetaApiGetType()

Returns

nuint

Transfer ownership: None Nullable: False

AudioMetaGetInfo()

Calls native function gst_audio_meta_get_info.

public static extern MetaInfoUnownedHandle AudioMetaGetInfo()

Returns

MetaInfoUnownedHandle

Transfer ownership: None Nullable: False

AudioQuantizeNew(AudioDitherMethod, AudioNoiseShapingMethod, AudioQuantizeFlags, AudioFormat, uint, uint)

Calls native function gst_audio_quantize_new.

public static extern AudioQuantizeUnownedHandle AudioQuantizeNew(AudioDitherMethod dither, AudioNoiseShapingMethod ns, AudioQuantizeFlags flags, AudioFormat format, uint channels, uint quantizer)

Parameters

dither AudioDitherMethod

Transfer ownership: None Nullable: False

ns AudioNoiseShapingMethod

Transfer ownership: None Nullable: False

flags AudioQuantizeFlags

Transfer ownership: None Nullable: False

format AudioFormat

Transfer ownership: None Nullable: False

channels uint

Transfer ownership: None Nullable: False

quantizer uint

Transfer ownership: None Nullable: False

Returns

AudioQuantizeUnownedHandle

Transfer ownership: None Nullable: False

AudioReorderChannels(ref byte, nuint, AudioFormat, int, AudioChannelPosition[], AudioChannelPosition[])

Calls native function gst_audio_reorder_channels.

public static extern bool AudioReorderChannels(ref byte data, nuint size, AudioFormat format, int channels, AudioChannelPosition[] from, AudioChannelPosition[] to)

Parameters

data byte

Transfer ownership: None Nullable: False

size nuint

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

AudioResamplerNew(AudioResamplerMethod, AudioResamplerFlags, AudioFormat, int, int, int, StructureHandle)

Calls native function gst_audio_resampler_new.

public static extern AudioResamplerOwnedHandle AudioResamplerNew(AudioResamplerMethod method, AudioResamplerFlags flags, AudioFormat format, int channels, int inRate, int outRate, StructureHandle options)

Parameters

method AudioResamplerMethod

Transfer ownership: None Nullable: False

flags AudioResamplerFlags

Transfer ownership: None Nullable: False

format AudioFormat

Transfer ownership: None Nullable: False

channels int

Transfer ownership: None Nullable: False

inRate int

Transfer ownership: None Nullable: False

outRate int

Transfer ownership: None Nullable: False

options StructureHandle

Transfer ownership: None Nullable: False

Returns

AudioResamplerOwnedHandle

Transfer ownership: Full Nullable: False

AudioResamplerOptionsSetQuality(AudioResamplerMethod, uint, int, int, StructureHandle)

Calls native function gst_audio_resampler_options_set_quality.

public static extern void AudioResamplerOptionsSetQuality(AudioResamplerMethod method, uint quality, int inRate, int outRate, StructureHandle options)

Parameters

method AudioResamplerMethod

Transfer ownership: None Nullable: False

quality uint

Transfer ownership: None Nullable: False

inRate int

Transfer ownership: None Nullable: False

outRate int

Transfer ownership: None Nullable: False

options StructureHandle

Transfer ownership: None Nullable: False

BufferAddAudioClippingMeta(BufferHandle, Format, ulong, ulong)

Calls native function gst_buffer_add_audio_clipping_meta. Version: 1.8

[Version("1.8")]
public static extern AudioClippingMetaUnownedHandle BufferAddAudioClippingMeta(BufferHandle buffer, Format format, ulong start, ulong end)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

format Format

Transfer ownership: None Nullable: False

start ulong

Transfer ownership: None Nullable: False

end ulong

Transfer ownership: None Nullable: False

Returns

AudioClippingMetaUnownedHandle

Transfer ownership: None Nullable: False

BufferAddAudioDownmixMeta(BufferHandle, AudioChannelPosition[], int, AudioChannelPosition[], int, ref float)

Calls native function gst_buffer_add_audio_downmix_meta.

public static extern AudioDownmixMetaUnownedHandle BufferAddAudioDownmixMeta(BufferHandle buffer, AudioChannelPosition[] fromPosition, int fromChannels, AudioChannelPosition[] toPosition, int toChannels, ref float matrix)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

fromPosition AudioChannelPosition[]

Transfer ownership: None Nullable: False

fromChannels int

Transfer ownership: None Nullable: False

toPosition AudioChannelPosition[]

Transfer ownership: None Nullable: False

toChannels int

Transfer ownership: None Nullable: False

matrix float

Transfer ownership: None Nullable: False

Returns

AudioDownmixMetaUnownedHandle

Transfer ownership: None Nullable: False

BufferAddAudioLevelMeta(BufferHandle, byte, bool)

Calls native function gst_buffer_add_audio_level_meta. Version: 1.20

[Version("1.20")]
public static extern AudioLevelMetaUnownedHandle BufferAddAudioLevelMeta(BufferHandle buffer, byte level, bool voiceActivity)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

level byte

Transfer ownership: None Nullable: False

voiceActivity bool

Transfer ownership: None Nullable: False

Returns

AudioLevelMetaUnownedHandle

Transfer ownership: None Nullable: True

BufferAddAudioMeta(BufferHandle, AudioInfoHandle, nuint, ref nuint)

Calls native function gst_buffer_add_audio_meta. Version: 1.16

[Version("1.16")]
public static extern AudioMetaUnownedHandle BufferAddAudioMeta(BufferHandle buffer, AudioInfoHandle info, nuint samples, ref nuint offsets)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

info AudioInfoHandle

Transfer ownership: None Nullable: False

samples nuint

Transfer ownership: None Nullable: False

offsets nuint

Transfer ownership: None Nullable: True

Returns

AudioMetaUnownedHandle

Transfer ownership: None Nullable: False

BufferGetAudioDownmixMetaForChannels(BufferHandle, AudioChannelPosition[], int)

Calls native function gst_buffer_get_audio_downmix_meta_for_channels.

public static extern AudioDownmixMetaUnownedHandle BufferGetAudioDownmixMetaForChannels(BufferHandle buffer, AudioChannelPosition[] toPosition, int toChannels)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

toPosition AudioChannelPosition[]

Transfer ownership: None Nullable: False

toChannels int

Transfer ownership: None Nullable: False

Returns

AudioDownmixMetaUnownedHandle

Transfer ownership: None Nullable: False

BufferGetAudioLevelMeta(BufferHandle)

Calls native function gst_buffer_get_audio_level_meta. Version: 1.20

[Version("1.20")]
public static extern AudioLevelMetaUnownedHandle BufferGetAudioLevelMeta(BufferHandle buffer)

Parameters

buffer BufferHandle

Transfer ownership: None Nullable: False

Returns

AudioLevelMetaUnownedHandle

Transfer ownership: None Nullable: True

StreamVolumeConvertVolume(StreamVolumeFormat, StreamVolumeFormat, double)

Calls native function gst_stream_volume_convert_volume.

public static extern double StreamVolumeConvertVolume(StreamVolumeFormat from, StreamVolumeFormat to, double val)

Parameters

from StreamVolumeFormat

Transfer ownership: None Nullable: False

to StreamVolumeFormat

Transfer ownership: None Nullable: False

val double

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False