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