mirror of https://github.com/axmolengine/axmol.git
Refactor AudioEngine, fix compile issue.
This commit is contained in:
parent
a759332591
commit
c8f85a4a95
|
@ -338,7 +338,7 @@ void AudioEngine::remove(AUDIO_ID audioID)
|
||||||
if (it->second.profileHelper) {
|
if (it->second.profileHelper) {
|
||||||
it->second.profileHelper->audioIDs.remove(audioID);
|
it->second.profileHelper->audioIDs.remove(audioID);
|
||||||
}
|
}
|
||||||
_audioPathIDMap[*it->second.filePath].remove(audioID);
|
_audioPathIDMap[it->second.filePath].remove(audioID);
|
||||||
_audioIDInfoMap.erase(audioID);
|
_audioIDInfoMap.erase(audioID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -416,7 +416,7 @@ void AudioEngineImpl::update(float dt)
|
||||||
std::string filePath;
|
std::string filePath;
|
||||||
if (player->_finishCallbak) {
|
if (player->_finishCallbak) {
|
||||||
auto& audioInfo = AudioEngine::_audioIDInfoMap[audioID];
|
auto& audioInfo = AudioEngine::_audioIDInfoMap[audioID];
|
||||||
filePath = *audioInfo.filePath;
|
filePath = audioInfo.filePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
AudioEngine::remove(audioID);
|
AudioEngine::remove(audioID);
|
||||||
|
|
Loading…
Reference in New Issue