Ejemplo n.º 1
0
int SoundManager::playEffect(string keyName)
{
    SoundData* data = _dicSounds.at(keyName);

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