int SoundManager::playEffect(string keyName) { SoundData* data = _dicSounds.at(keyName); return SimpleAudioEngine::getInstance()->playEffect(data->getSoundKey(), data->getIsLoop()); }
void SoundManager::playBgm(string keyName) { SoundData* data = _dicSounds.at(keyName); SimpleAudioEngine::getInstance()->playBackgroundMusic(data->getSoundKey(), data->getIsLoop()); }