int SimpleAudioEngine::playEffect(const char* pszFilePath) { int nRet = preloadEffect(pszFilePath); if (nRet) { playPreloadedEffect(nRet); } return nRet; }
// for sound effects int SimpleAudioEngine::playEffect(const char* pszFilePath) { int nSoundID = preloadEffect(pszFilePath); if (nSoundID > 0) { playPreloadedEffect(nSoundID); } return nSoundID; }