public uint Estimate(AuxiliaryBufferCommand command) { if (command.Enabled) { return(15956); } return(3765); }
/// <summary> /// Generate a new <see cref="AuxiliaryBufferCommand"/>. /// </summary> /// <param name="bufferOffset">The target buffer offset.</param> /// <param name="inputBufferOffset">The input buffer offset.</param> /// <param name="outputBufferOffset">The output buffer offset.</param> /// <param name="state">The aux state.</param> /// <param name="isEnabled">Set to true if the effect should be active.</param> /// <param name="countMax">The limit of the circular buffer.</param> /// <param name="outputBuffer">The guest address of the output buffer.</param> /// <param name="inputBuffer">The guest address of the input buffer.</param> /// <param name="updateCount">The count to add on the offset after write/read operations.</param> /// <param name="writeOffset">The write offset.</param> /// <param name="nodeId">The node id associated to this command.</param> public void GenerateAuxEffect(uint bufferOffset, byte inputBufferOffset, byte outputBufferOffset, ref AuxiliaryBufferAddresses state, bool isEnabled, uint countMax, CpuAddress outputBuffer, CpuAddress inputBuffer, uint updateCount, uint writeOffset, int nodeId) { if (state.SendBufferInfoBase != 0 && state.ReturnBufferInfoBase != 0) { AuxiliaryBufferCommand command = new AuxiliaryBufferCommand(bufferOffset, inputBufferOffset, outputBufferOffset, ref state, isEnabled, countMax, outputBuffer, inputBuffer, updateCount, writeOffset, nodeId); command.EstimatedProcessingTime = _commandProcessingTimeEstimator.Estimate(command); AddCommand(command); } }
public uint Estimate(AuxiliaryBufferCommand command) { Debug.Assert(_sampleCount == 160 || _sampleCount == 240); if (_sampleCount == 160) { if (command.Enabled) { return((uint)7182.14f); } return((uint)472.11f); } if (command.Enabled) { return((uint)9435.96f); } return((uint)462.62f); }
public uint Estimate(AuxiliaryBufferCommand command) { Debug.Assert(_sampleCount == 160 || _sampleCount == 240); if (_sampleCount == 160) { if (command.Enabled) { return((uint)7177.9f); } return((uint)489.16f); } if (command.Enabled) { return((uint)9499.8f); } return((uint)485.56f); }