闪退位置为
iter->second(id, *AudioEngine::_audioIDInfoMap[id].filePath);
发现应该是是找不到对应的id
暂时加了个判断处理了下
int id = audioId;
auto it = AudioEngine::_audioIDInfoMap.find(id);
if (it == AudioEngine::_audioIDInfoMap.end())
{
return;
}
iter->second(id, *AudioEngine::_audioIDInfoMap[id].filePath);