Пример #1
0
int SoundManager::playEffect(string keyName)
{
    SoundData* data = _dicSounds.at(keyName);

    return SimpleAudioEngine::getInstance()->playEffect(data->getSoundKey(), data->getIsLoop());
}
Пример #2
0
void SoundManager::playBgm(string keyName)
{
    SoundData* data = _dicSounds.at(keyName);
    SimpleAudioEngine::getInstance()->playBackgroundMusic(data->getSoundKey(), data->getIsLoop());
}