Exemplo n.º 1
0
int SimpleAudioEngine::playEffect(const char* pszFilePath)
{
	int nRet = preloadEffect(pszFilePath);
	if (nRet)
	{
		playPreloadedEffect(nRet);
	}
	return nRet;
}
Exemplo n.º 2
0
// for sound effects
int SimpleAudioEngine::playEffect(const char* pszFilePath)
{
    int nSoundID = preloadEffect(pszFilePath);

    if (nSoundID > 0)
    {
        playPreloadedEffect(nSoundID);
    }

    return nSoundID;
}