Precache attrib
This commit is contained in:
@@ -23,11 +23,14 @@ void ActorSound::LoadFromNode( const XNode* pNode )
|
|||||||
pNode->GetAttrValue("SupportPan", params.m_bSupportPan);
|
pNode->GetAttrValue("SupportPan", params.m_bSupportPan);
|
||||||
pNode->GetAttrValue("SupportRateChanging", params.m_bSupportRateChanging);
|
pNode->GetAttrValue("SupportRateChanging", params.m_bSupportRateChanging);
|
||||||
|
|
||||||
|
bool bPrecache = true;
|
||||||
|
pNode->GetAttrValue( "Precache", bPrecache );
|
||||||
|
|
||||||
Actor::LoadFromNode( pNode );
|
Actor::LoadFromNode( pNode );
|
||||||
|
|
||||||
RString sFile;
|
RString sFile;
|
||||||
if( ActorUtil::GetAttrPath(pNode, "File", sFile) )
|
if( ActorUtil::GetAttrPath(pNode, "File", sFile) )
|
||||||
m_Sound.Load( sFile, true, ¶ms );
|
m_Sound.Load( sFile, bPrecache, ¶ms );
|
||||||
}
|
}
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
|
|||||||
Reference in New Issue
Block a user