Assets/Plugins/Unity.DSPGraph/Runtime/DSPCommandBlock.cs
/// <summary>
/// Adds an inlet port to the node
/// </summary>
/// <remarks>
/// Ports are where signal flow comes into and out of the DSP kernel
/// </remarks>
/// <param name="node">DSPNode specifying the Node on which the inlet is added</param>
/// <param name="channelCount">Int specifying the number of channels</param>
/// <param name="format">SoundFormat which specified the speaker support</param>
Adds an inlet port to the node
Adds an inlet port to the node
public void AddInletPort(DSPNode node, int channelCount, SoundFormat format)
        {
            AssertSameGraphAsNode(node);
            QueueCommand(new AddInletPortCommand
            {
                m_Type = DSPCommandType.AddInletPort,
                m_Graph = m_Graph,
                m_Handle = m_Handle,
                m_Node = node.Handle,
                m_ChannelCount = channelCount,
                m_Format = (int)format,
            });
        }
public void AddInletPort ( DSPNode node , int channelCount , SoundFormat format ) { AssertSameGraphAsNode ( node ) ; QueueCommand ( new AddInletPortCommand { m_Type = DSPCommandType . AddInletPort , m_Graph = m_Graph , m_Handle = m_Handle , m_Node = node . Handle , m_ChannelCount = channelCount , m_Format = ( int ) format , } ) ; }
Adds an inlet port to the node
Adds an inlet port to the node
node
DSPNode
DSPNode specifying the Node on which the inlet is added
DSPNode specifying the Node on which the inlet is added
channelCount
int
Int specifying the number of channels
Int specifying the number of channels
format
SoundFormat
SoundFormat which specified the speaker support
SoundFormat which specified the speaker support
remarks
Ports are where signal flow comes into and out of the DSP kernel
Ports are where signal flow comes into and out of the DSP kernel