Exemplo n.º 1
0
unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath, bool bLoop)
{
	std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);
	if (s_bI9100)
	{
		return SimpleAudioEngineOpenSL::sharedEngine()->playEffect(fullPath.c_str(), bLoop);
	}
	else 
	{
		return playEffectJNI(fullPath.c_str(), bLoop);
	}
}
Exemplo n.º 2
0
unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath, bool bLoop)
{
    LOGD("Play Effect sound,file is %s", pszFilePath);

    if (s_bI9100)
    {
        LOGERROR("It's I9100 phone!");
        return SimpleAudioEngineOpenSL::sharedEngine()->playEffect(pszFilePath,
                bLoop);
    }
    else
    {
        LOGD("ready to exe playEffectJNI");
        return playEffectJNI(pszFilePath, bLoop);
    }
}
Exemplo n.º 3
0
	unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath)
	{
		return playEffectJNI(pszFilePath);
	}
	unsigned int AudioEngine::playEffect(const char* pszFilePath, bool bLoop)
	{
		return playEffectJNI(pszFilePath, bLoop);
	}
	unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath,bool bLoop,float pitch,float pan,float gain)
	{
		return playEffectJNI(pszFilePath, bLoop, pitch, pan, gain);
	}