void Param::setProcessor( const NodeRef &node ) { if( ! node ) return; initInternalBuffer(); lock_guard<mutex> lock( getContext()->getMutex() ); resetImpl(); // force node to be mono and initialize it node->setNumChannels( 1 ); node->initializeImpl(); mProcessor = node; }
void Param::setProcessor( const NodeRef &node ) { if( ! node ) return; initInternalBuffer(); lock_guard<mutex> lock( getContext()->getMutex() ); resetImpl(); // force node to be mono and initialize it node->setNumChannels( 1 ); node->initializeImpl(); mProcessor = node; mIsVaryingThisBlock = true; // stays true until there is no more processor and eval() sets this to false. }
void Context::initializeNode( const NodeRef &node ) { node->initializeImpl(); }