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
[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
public static Type AudioClippingMetaApiGetType()
Returns
- Type
public static MetaInfo AudioClippingMetaGetInfo()
Returns
- MetaInfo
public static Type AudioDownmixMetaApiGetType()
Returns
- Type
public static MetaInfo AudioDownmixMetaGetInfo()
Returns
- MetaInfo
public static AudioFormat AudioFormatBuildInteger(bool sign, int endianness, int width, int depth)
Parameters
sign
bool
endianness
int
width
int
depth
int
Returns
- AudioFormat
public static void AudioFormatFillSilence(AudioFormatInfo info, Span<byte> dest)
Parameters
info
AudioFormatInfo
dest
Span<byte>
public static AudioFormat AudioFormatFromString(string format)
Parameters
format
string
Returns
- AudioFormat
public static AudioFormatInfo AudioFormatGetInfo(AudioFormat format)
Parameters
format
AudioFormat
Returns
- AudioFormatInfo
public static Type AudioFormatInfoGetType()
Returns
- Type
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
[Version("1.20")]
public static Type AudioLevelMetaApiGetType()
Returns
- Type
[Version("1.20")]
public static MetaInfo AudioLevelMetaGetInfo()
Returns
- MetaInfo
public static Type AudioMetaApiGetType()
Returns
- Type
public static MetaInfo AudioMetaGetInfo()
Returns
- MetaInfo
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
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
[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
[Version("1.20")]
public static AudioLevelMeta? BufferAddAudioLevelMeta(Buffer buffer, byte level, bool voiceActivity)
Parameters
buffer
Buffer
level
byte
voiceActivity
bool
Returns
- AudioLevelMeta
[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
[Version("1.20")]
public static AudioLevelMeta? BufferGetAudioLevelMeta(Buffer buffer)
Parameters
buffer
Buffer
Returns
- AudioLevelMeta
public static double StreamVolumeConvertVolume(StreamVolumeFormat from, StreamVolumeFormat to, double val)
Parameters
from
StreamVolumeFormat
to
StreamVolumeFormat
val
double
Returns
- double