expose params

This commit is contained in:
Glenn Maynard
2007-03-12 01:27:10 +00:00
parent d2e3c4b22c
commit 544c445b49
+5 -1
View File
@@ -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, &params );
} }
// lua start // lua start