|
发表于 2018-12-10 15:31:29
只看该作者
11#
好的,在源码DCSApplication.cpp中,这个地方被注释调了,请问是你们改动的还baidu 给你们的就是这样的
#if 0
m_audioLibName = Configuration::getInstance()->getAudioLibName();
bool ret = m_audioDyLib->load(m_audioLibName);
if (!ret) {
LOGGER_ERROR(LX("initialize Failed").d("reason", "load library error"));
return false;
}
createT * m_create = (createT *)m_audioDyLib->getSym("create");
if (!m_create) {
LOGGER_ERROR(LX("initialize Failed").d("reason", "get symbol error"));
return false;
}
std::shared_ptr<AudioMicrophoneInterface> micWrapper = m_create(m_dcsSdk);
micWrapper->setRecordDataInputCallback(recordDataInputCallback);
applicationManager->setMicrophoneWrapper(micWrapper);
#endif |
|