Assets/Plugins/Unity.DSPGraph/Runtime/DSPCommandBlock.cs
/// <summary>
/// Sets the attenuation of a connection. Attenuation will be applied when the samples are routed to the next node through the associated connection
/// </summary>
/// <param name="connection">DSPConnection on which the attenuation is set</param>
/// <param name="value">Float value of the attenuation</param>
/// <param name="interpolationLength">UInt specifying the interpolation length</param>
Sets the attenuation of a connection. Attenuation will be applied when the samples are routed to the next node through the associated connection
Sets the attenuation of a connection . Attenuation will be applied when the samples are routed to the next node through the associated connection
public void SetAttenuation(DSPConnection connection, float value, int interpolationLength = 0)
        {
            AssertSameGraphAsConnection(connection);
            QueueCommand(new SetAttenuationCommand
            {
                m_Type = DSPCommandType.SetAttenuation,
                m_Graph = m_Graph,
                m_Handle = m_Handle,
                m_Connection = connection.Handle,
                m_Dimension = 1,
                m_Value0 = value,
                m_InterpolationLength = (uint)interpolationLength,
            });
        }
public void SetAttenuation ( DSPConnection connection , float value , int interpolationLength = 0 ) { AssertSameGraphAsConnection ( connection ) ; QueueCommand ( new SetAttenuationCommand { m_Type = DSPCommandType . SetAttenuation , m_Graph = m_Graph , m_Handle = m_Handle , m_Connection = connection . Handle , m_Dimension = 1 , m_Value0 = value , m_InterpolationLength = ( uint ) interpolationLength , } ) ; }
Sets the attenuation of a connection.
Sets the attenuation of a connection .
connection
DSPConnection
DSPConnection on which the attenuation is set
DSPConnection on which the attenuation is set
value
float
Float value of the attenuation
Float value of the attenuation
interpolationLength
int
UInt specifying the interpolation length
UInt specifying the interpolation length