Skip to main content
Version: 2.x

Interface IPiplineEffect

Assembly: cs.temp.dll.dll
Declaration
public interface IPiplineEffect

Properties

Id

Effect id

Declaration
uint Id { get; }

Index

Effect index

Declaration
uint Index { get; set; }

Parent

Pipeline handle

Declaration
OdinPipelineHandle Parent { get; }

Methods

GetEffectIndex(out uint)

Get native effect index

Declaration
NativeBindings.OdinError GetEffectIndex(out uint indexId)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
System.UInt32indexIdnative index

GetEffectType(out OdinEffectType)

Get native effect OdinNative.Core.Imports.NativeBindings.OdinEffectType

Declaration
NativeBindings.OdinError GetEffectType(out NativeBindings.OdinEffectType effectType)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
Odin.NativeBindings.OdinEffectTypeeffectTypenative type

GetVadConfig(out OdinVadConfig)

Get native voice activity config

Declaration
NativeBindings.OdinError GetVadConfig(out NativeBindings.OdinVadConfig config)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
Odin.NativeBindings.OdinVadConfigconfignative config

SetApmConfig(OdinApmConfig)

Set native audio processing config

Declaration
NativeBindings.OdinError SetApmConfig(NativeBindings.OdinApmConfig config)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
Odin.NativeBindings.OdinApmConfigconfignative config

SetApmStreamDelay(ulong)

Set native audio processing delay

Declaration
NativeBindings.OdinError SetApmStreamDelay(ulong ms)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
System.UInt64msdelay

SetVadConfig(OdinVadConfig)

Set native voice activity config

Declaration
NativeBindings.OdinError SetVadConfig(NativeBindings.OdinVadConfig config)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
Odin.NativeBindings.OdinVadConfigconfignew config

UpdateApmPlayback(float[])

Send samples for native audio processing

Declaration
NativeBindings.OdinError UpdateApmPlayback(float[] audio)
Returns

Odin.NativeBindings.OdinError: OdinNative.Core.Imports.NativeBindings.OdinError.ODIN_ERROR_SUCCESS or error

Parameters
TypeNameDescription
System.Single[]audiosamples