本文整理汇总了C++中LLAudioData::hasDecodedData方法的典型用法代码示例。如果您正苦于以下问题:C++ LLAudioData::hasDecodedData方法的具体用法?C++ LLAudioData::hasDecodedData怎么用?C++ LLAudioData::hasDecodedData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLAudioData
的用法示例。
在下文中一共展示了LLAudioData::hasDecodedData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: hasPendingPreloads
BOOL LLAudioSource::hasPendingPreloads() const
{
// Check to see if we've got any preloads on deck for this source
data_map::const_iterator iter;
for (iter = mPreloadMap.begin(); iter != mPreloadMap.end(); iter++)
{
LLAudioData *adp = iter->second;
if (!adp->hasDecodedData())
{
// This source is still waiting for a preload
return TRUE;
}
}
return FALSE;
}
示例2: hasPendingPreloads
bool LLAudioSource::hasPendingPreloads() const
{
// Check to see if we've got any preloads on deck for this source
data_map::const_iterator iter;
for (iter = mPreloadMap.begin(); iter != mPreloadMap.end(); iter++)
{
LLAudioData *adp = iter->second;
// note: a bad UUID will forever be !hasDecodedData()
// but also !hasValidData(), hence the check for hasValidData()
if (!adp->hasDecodedData() && adp->hasValidData())
{
// This source is still waiting for a preload
return true;
}
}
return false;
}