Table of Contents

Class AudioResampler

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

Methods

Free(AudioResamplerHandle)

Calls native method gst_audio_resampler_free.

public static extern void Free(AudioResamplerHandle resampler)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

GetInFrames(AudioResamplerHandle, nuint)

Calls native method gst_audio_resampler_get_in_frames.

public static extern nuint GetInFrames(AudioResamplerHandle resampler, nuint outFrames)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

outFrames nuint

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetMaxLatency(AudioResamplerHandle)

Calls native method gst_audio_resampler_get_max_latency.

public static extern nuint GetMaxLatency(AudioResamplerHandle resampler)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

GetOutFrames(AudioResamplerHandle, nuint)

Calls native method gst_audio_resampler_get_out_frames.

public static extern nuint GetOutFrames(AudioResamplerHandle resampler, nuint inFrames)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

inFrames nuint

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

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

Calls native function gst_audio_resampler_new.

public static extern AudioResamplerOwnedHandle New(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

OptionsSetQuality(AudioResamplerMethod, uint, int, int, StructureHandle)

Calls native function gst_audio_resampler_options_set_quality.

public static extern void OptionsSetQuality(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

Resample(AudioResamplerHandle, IntPtr, nuint, IntPtr, nuint)

Calls native method gst_audio_resampler_resample.

public static extern void Resample(AudioResamplerHandle resampler, IntPtr @in, nuint inFrames, IntPtr @out, nuint outFrames)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

in IntPtr
inFrames nuint

Transfer ownership: None Nullable: False

out IntPtr
outFrames nuint

Transfer ownership: None Nullable: False

Reset(AudioResamplerHandle)

Calls native method gst_audio_resampler_reset.

public static extern void Reset(AudioResamplerHandle resampler)

Parameters

resampler AudioResamplerHandle

Transfer ownership: None Nullable: False

Update(AudioResamplerHandle, int, int, StructureHandle)

Calls native method gst_audio_resampler_update.

public static extern bool Update(AudioResamplerHandle resampler, int inRate, int outRate, StructureHandle options)

Parameters

resampler AudioResamplerHandle

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

bool

Transfer ownership: None Nullable: False