/// <summary> /// Generate a new <see cref="LimiterCommandVersion1"/>. /// </summary> /// <param name="bufferOffset">The target buffer offset.</param> /// <param name="parameter">The limiter parameter.</param> /// <param name="state">The limiter state.</param> /// <param name="isEnabled">Set to true if the effect should be active.</param> /// <param name="workBuffer">The work buffer to use for processing.</param> /// <param name="nodeId">The node id associated to this command.</param> public void GenerateLimiterEffectVersion1(uint bufferOffset, LimiterParameter parameter, Memory <LimiterState> state, bool isEnabled, ulong workBuffer, int nodeId) { if (parameter.IsChannelCountValid()) { LimiterCommandVersion1 command = new LimiterCommandVersion1(bufferOffset, parameter, state, isEnabled, workBuffer, nodeId); command.EstimatedProcessingTime = _commandProcessingTimeEstimator.Estimate(command); AddCommand(command); } }
public uint Estimate(LimiterCommandVersion1 command) { return(0); }
public uint Estimate(LimiterCommandVersion1 command) { Debug.Assert(_sampleCount == 160 || _sampleCount == 240); return(EstimateLimiterCommandCommon(command.Parameter, command.IsEffectEnabled)); }