Developer Documentation

CustomEffect<T>

Inherits from: PiplineEffect

public class CustomEffect<T> : PiplineEffect, IPiplineEffect where T : struct

Custom effect for Odin callbacks

Constructors

NameDescription
CustomEffect(OdinPipelineHandle, UInt32)Internal effect constructor, use CustomEffect.Create{T}(MediaPipeline, Action{OdinCallbackAudioData, T}, T)"

Static Methods

NameDescription
CreateInsert a custom effect in the specified pipline
SerializeSerialize structure to pointer for arbitary data T
DeserializeDeserializes a structure from a byte array

Public Methods

NameDescription
SerializeUserdataSerialize arbitary userdata
DeserializeUserdataDeserializes userdata from a byte array

Inherited Properties

NameDescription
IdEffect id
IndexEffect index
ParentPipeline handle

Inherited Methods

NameDescription
GetEffectIndexGet native effect index
GetEffectTypeGet native effect NativeBindings
GetVadConfigGet native voice activity config
SetApmConfigSet native audio processing config
SetApmStreamDelaySet native audio processing delay
SetVadConfigSet native voice activity config
UpdateApmPlaybackSend samples for native audio processing