// static void LLAudioEngine::assetCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType type, void *user_data, S32 result_code, LLExtStat ext_status) { if(!gAudiop) return; LLAudioData *adp = gAudiop->getAudioData(uuid); if (result_code) { LL_INFOS("AudioEngine") << "Boom, error in audio file transfer: " << LLAssetStorage::getErrorString( result_code ) << " (" << result_code << ")" << LL_ENDL; // Need to mark data as bad to avoid constant rerequests. if (adp) { adp->setLoadState(LLAudioData::STATE_LOAD_ERROR); } } else { if (!adp) { // Should never happen LL_WARNS("AudioEngine") << "Got asset callback without audio data for " << uuid << LL_ENDL; } else { // LL_INFOS("AudioEngine") << "Got asset callback with good audio data for " << uuid << ", making decode request" << LL_ENDL; adp->setLoadState(LLAudioData::STATE_LOAD_REQ_DECODE); //Immediate decode. adp->updateLoadState(); } } }