Assets/Plugins/Unity.DSPGraph/Runtime/DSPCommandBlock.cs
/// <summary>
/// Used to add attenuation value to a DSPConnection
/// </summary>
/// <param name="connection">DSPConnection to which attenuation is applied</param>
/// <param name="dspClock">Specifies the DSPClock time at which the attenuation value takes effect</param>
/// <param name="value">Attenuation value to be applied</param>
Used to add attenuation value to a DSPConnection
Used to add attenuation value to a DSPConnection
public void AddAttenuationKey(DSPConnection connection, long dspClock, float value)
        {
            AssertSameGraphAsConnection(connection);
            QueueCommand(new AddAttenuationKeyCommand
            {
                m_Type = DSPCommandType.AddAttenuationKey,
                m_Graph = m_Graph,
                m_Handle = m_Handle,
                m_Connection = connection.Handle,
                m_Dimension = 1,
                m_Value0 = value,
                m_DSPClock = (ulong)dspClock,
            });
        }
public void AddAttenuationKey ( DSPConnection connection , long dspClock , float value ) { AssertSameGraphAsConnection ( connection ) ; QueueCommand ( new AddAttenuationKeyCommand { m_Type = DSPCommandType . AddAttenuationKey , m_Graph = m_Graph , m_Handle = m_Handle , m_Connection = connection . Handle , m_Dimension = 1 , m_Value0 = value , m_DSPClock = ( ulong ) dspClock , } ) ; }
Used to add attenuation value to a DSPConnection
Used to add attenuation value to a DSPConnection
connection
DSPConnection
DSPConnection to which attenuation is applied
DSPConnection to which attenuation is applied
dspClock
long
Specifies the DSPClock time at which the attenuation value takes effect
Specifies the DSPClock time at which the attenuation value takes effect
value
float
Attenuation value to be applied
Attenuation value to be applied