Skip to main content
Version: 2.x

Class OdinApmComponent

AudioProcessingModule component for OdinNative.Wrapper.Media.ApmEffect

This class provides configuration for the native implemented audio processing. The supported processor/filter are applicable to OdinNative.Wrapper.Media.IMedia which must be set.

Assembly: cs.temp.dll.dll
Declaration
public class OdinApmComponent : MonoBehaviour, IOdinEffect

Implements:
OdinNative.Unity.Audio.IOdinEffect

Properties

Media

Declaration
public IMedia Media { get; set; }

Effect

Declaration
public ApmEffect Effect { get; }

IsCreated

Declaration
public bool IsCreated { get; }

Fields

EchoCanceller

Declaration
public bool EchoCanceller

HighPassFilter

Declaration
public bool HighPassFilter

PreAmplifier

Declaration
public bool PreAmplifier

NoiseSuppression

Declaration
public NativeBindings.OdinNoiseSuppression NoiseSuppression

TransientSuppressor

Declaration
public bool TransientSuppressor

GainController

Declaration
public bool GainController

Methods

UpdateConfig()

Declaration
public void UpdateConfig()

UpdateConfig(MediaPipeline)

Declaration
public void UpdateConfig(MediaPipeline pipeline)
Parameters
TypeName
Odin.MediaPipelinepipeline

ResetEffect()

Declaration
public void ResetEffect()

ResetEffect(MediaPipeline, uint, bool, OdinApmConfig)

Declaration
public void ResetEffect(MediaPipeline pipeline, uint samplerate, bool stereo, OdinApmConfig config)
Parameters
TypeName
Odin.MediaPipelinepipeline
System.UInt32samplerate
System.Booleanstereo
Odin.OdinApmConfigconfig

UpdateApmPlayback(float[])

Send samples to Apm processing. The buffer should contain loopback audio data for calculating echo cancellation.

Declaration
public void UpdateApmPlayback(float[] buffer)
Parameters
TypeNameDescription
System.Single[]buffersamples

GetMedia<T>()

Declaration
public T GetMedia<T>() where T : IMedia
Returns

<T>

Type Parameters
  • T

GetEffect()

Declaration
public PiplineEffect GetEffect()
Returns

Odin.PiplineEffect

Implements