#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
页:
1
[2]