Table of Contents

Interface IParameterDispatch

Namespace
NAudio.Effects
Assembly
NAudio.Core.dll

A sink that marshals EffectParameter writes onto the audio thread. While an effect's parameters are routed through a dispatch, setting Value from another thread does not mutate the effect inline; the (already clamped) write is posted here and applied later, at a block boundary, on the thread that runs the effect — so coefficient recomputation and buffer resizes never race the audio callback. See ParameterDispatchQueue.

public interface IParameterDispatch

Methods

Post(EffectParameter, float)

Posts a clamped parameter write to be applied later on the audio thread. Must be safe to call from a non-audio thread and must not block.

void Post(EffectParameter parameter, float value)

Parameters

parameter EffectParameter
value float