trying to save correct audio files

This commit is contained in:
Ivan Morozov
2021-01-29 18:40:43 +03:00
parent 9e8a52fac4
commit 428b161983
2 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,6 @@ void CPPTUserInfo::ReadExtenalObjects(std::wstring strFolderMem)
oInfo.m_strFilePath = m_oExMedia.m_strPresentationDirectory;
oInfo.m_dwID = 0xFFFFFFFF;
m_oExMedia.m_arImages.push_back(oInfo);
m_oExMedia.m_arAudios.push_back(oInfo); // Experimental
// читаем все внешние объекты
std::vector<CRecordExObjListContainer*> oArrayExObjects;
@ -2293,6 +2292,7 @@ void CPPTUserInfo::LoadExternal(CRecordExObjListContainer* pExObjects)
oInfo.m_strFilePath = m_oExMedia.m_strPresentationDirectory + FILE_SEPARATOR_STR + oArrayStrings[0]->m_strText + _T(".audio");
oInfo.m_dwID = (_UINT32)XmlUtils::GetInteger(oArrayStrings[2]->m_strText.c_str());
m_oExMedia.m_arAudios.push_back(oInfo);
oArrayData[0]->SaveToFile(oInfo.m_strFilePath);
}
}

View File

@ -56,7 +56,7 @@ protected:
bool ReadCurrentUser(POLE::Stream *pStm);
void ReadEncryptedSummary();
void ReadDocumentSummary();
void ReadPictures();
void ReadPictures();
private:
bool m_bDualStorage;