Table of Contents

Class Functions

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

Methods

AudioBufferClip(Buffer, Segment, int, int)

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

Parameters

buffer Buffer
segment Segment
rate int
bpf int

Returns

Buffer

AudioBufferMap(out AudioBuffer, AudioInfo, Buffer, MapFlags)

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

Parameters

buffer AudioBuffer
info AudioInfo
gstbuffer Buffer
flags MapFlags

Returns

bool

AudioBufferTruncate(Buffer, int, nuint, nuint)

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

Parameters

buffer Buffer
bpf int
trim nuint
samples nuint

Returns

Buffer

AudioChannelGetFallbackMask(int)

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

Parameters

channels int

Returns

ulong

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

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

Parameters

flags AudioChannelMixerFlags
format AudioFormat
inChannels int
outChannels int
matrix float

Returns

AudioChannelMixer

AudioClippingMetaApiGetType()

public static Type AudioClippingMetaApiGetType()

Returns

Type

AudioClippingMetaGetInfo()

public static MetaInfo AudioClippingMetaGetInfo()

Returns

MetaInfo

AudioDownmixMetaApiGetType()

public static Type AudioDownmixMetaApiGetType()

Returns

Type

AudioDownmixMetaGetInfo()

public static MetaInfo AudioDownmixMetaGetInfo()

Returns

MetaInfo

AudioFormatBuildInteger(bool, int, int, int)

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

Parameters

sign bool
endianness int
width int
depth int

Returns

AudioFormat

AudioFormatFillSilence(AudioFormatInfo, Span<byte>)

public static void AudioFormatFillSilence(AudioFormatInfo info, Span<byte> dest)

Parameters

info AudioFormatInfo
dest Span<byte>

AudioFormatFromString(string)

public static AudioFormat AudioFormatFromString(string format)

Parameters

format string

Returns

AudioFormat

AudioFormatGetInfo(AudioFormat)

public static AudioFormatInfo AudioFormatGetInfo(AudioFormat format)

Parameters

format AudioFormat

Returns

AudioFormatInfo

AudioFormatInfoGetType()

public static Type AudioFormatInfoGetType()

Returns

Type

AudioFormatToString(AudioFormat)

public static string AudioFormatToString(AudioFormat format)

Parameters

format AudioFormat

Returns

string

AudioIec61937FrameSize(AudioRingBufferSpec)

public static uint AudioIec61937FrameSize(AudioRingBufferSpec spec)

Parameters

spec AudioRingBufferSpec

Returns

uint

AudioIec61937Payload(Span<byte>, Span<byte>, AudioRingBufferSpec, int)

public static bool AudioIec61937Payload(Span<byte> src, Span<byte> dst, AudioRingBufferSpec spec, int endianness)

Parameters

src Span<byte>
dst Span<byte>
spec AudioRingBufferSpec
endianness int

Returns

bool

AudioLevelMetaApiGetType()

[Version("1.20")]
public static Type AudioLevelMetaApiGetType()

Returns

Type

AudioLevelMetaGetInfo()

[Version("1.20")]
public static MetaInfo AudioLevelMetaGetInfo()

Returns

MetaInfo

AudioMetaApiGetType()

public static Type AudioMetaApiGetType()

Returns

Type

AudioMetaGetInfo()

public static MetaInfo AudioMetaGetInfo()

Returns

MetaInfo

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

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

Parameters

dither AudioDitherMethod
ns AudioNoiseShapingMethod
flags AudioQuantizeFlags
format AudioFormat
channels uint
quantizer uint

Returns

AudioQuantize

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

public static AudioResampler AudioResamplerNew(AudioResamplerMethod method, AudioResamplerFlags flags, AudioFormat format, int channels, int inRate, int outRate, Structure options)

Parameters

method AudioResamplerMethod
flags AudioResamplerFlags
format AudioFormat
channels int
inRate int
outRate int
options Structure

Returns

AudioResampler

AudioResamplerOptionsSetQuality(AudioResamplerMethod, uint, int, int, Structure)

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

Parameters

method AudioResamplerMethod
quality uint
inRate int
outRate int
options Structure

BufferAddAudioClippingMeta(Buffer, Format, ulong, ulong)

[Version("1.8")]
public static AudioClippingMeta BufferAddAudioClippingMeta(Buffer buffer, Format format, ulong start, ulong end)

Parameters

buffer Buffer
format Format
start ulong
end ulong

Returns

AudioClippingMeta

BufferAddAudioLevelMeta(Buffer, byte, bool)

[Version("1.20")]
public static AudioLevelMeta? BufferAddAudioLevelMeta(Buffer buffer, byte level, bool voiceActivity)

Parameters

buffer Buffer
level byte
voiceActivity bool

Returns

AudioLevelMeta

BufferAddAudioMeta(Buffer, AudioInfo, nuint, ref nuint)

[Version("1.16")]
public static AudioMeta BufferAddAudioMeta(Buffer buffer, AudioInfo info, nuint samples, ref nuint offsets)

Parameters

buffer Buffer
info AudioInfo
samples nuint
offsets nuint

Returns

AudioMeta

BufferGetAudioLevelMeta(Buffer)

[Version("1.20")]
public static AudioLevelMeta? BufferGetAudioLevelMeta(Buffer buffer)

Parameters

buffer Buffer

Returns

AudioLevelMeta

StreamVolumeConvertVolume(StreamVolumeFormat, StreamVolumeFormat, double)

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

Parameters

from StreamVolumeFormat
to StreamVolumeFormat
val double

Returns

double