コード例 #1
0
ファイル: Param.cpp プロジェクト: timmb/HarmonicMotion
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;
}
コード例 #2
0
ファイル: Param.cpp プロジェクト: cinder/cinder
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.
}
コード例 #3
0
ファイル: Context.cpp プロジェクト: martinfm/Cinder
void Context::initializeNode( const NodeRef &node )
{
	node->initializeImpl();
}