本文整理汇总了C++中CAction::SetSoundStart方法的典型用法代码示例。如果您正苦于以下问题:C++ CAction::SetSoundStart方法的具体用法?C++ CAction::SetSoundStart怎么用?C++ CAction::SetSoundStart使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAction
的用法示例。
在下文中一共展示了CAction::SetSoundStart方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
//.........这里部分代码省略.........
STRING_COPY( acTxt_, sizeof(acTxt_), poAttrib->Value() );
LOG( "%s: %s\n", poAttrib->Name(), acTxt_ );
CStr oIdxSeq( acTxt_ );
if( oIdxSeq.GetSize() && poAction )
{
static const char cDelim_ = ',';
unsigned int i = 0;
while( true )
{
int iIdx;
if( SSCANF( oIdxSeq.GetData() + i, "%d", &iIdx ) == 1 )
{
LOG( "index: %d\n", iIdx );
poAction->AppendAnimIndex( iIdx );
}
const int c = oIdxSeq.Find( i, cDelim_ );
if( c < 0 )
break;
i = c + 1;
}
}
}
else if( !strcmp( pcName, "sound" ) )
{
STRING_COPY( acTxt_, sizeof(acTxt_), poAttrib->Value() );
LOG( "%s: %s\n", poAttrib->Name(), acTxt_ );
TWav * poWav = m_poResMan_->NewWav( acTxt_ );
if( poWav )
{
poAction->SetSoundStart( poWav );
}
}
poAttrib = poAttrib->Next();
}
poAction->Init();
}
}
/*
else if( !strcmp( pcName, "joint_tracker" ) )
{
LOG( "joint_tracker:\n" );
TiXmlElement * poElement = poParent->ToElement();
if( poElement )
{
CJointTracker *poJointTracker = 0;
TiXmlAttribute* poAttrib = poElement->FirstAttribute();
while( poAttrib )
{
const char *pcName = poAttrib->Name();
if( !strcmp( pcName, "name" ) )
{
STRING_COPY( acTxt_, sizeof(acTxt_), poAttrib->Value() );
LOG( "%s: %s\n", poAttrib->Name(), acTxt_ );
poJointTracker = GetJointTracker( acTxt_ );
if( !poJointTracker )
{
poJointTracker = new CJointTracker;
poJointTracker->m_oName = acTxt_;