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);
	}
}
void SimpleAudioEngine::unloadEffect(const char* pszFilePath)
{
	std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);

	if (s_bI9100)
	{
		SimpleAudioEngineOpenSL::sharedEngine()->unloadEffect(fullPath.c_str());
	}
	else
	{
		unloadEffectJNI(fullPath.c_str());
	}
}
void SimpleAudioEngine::playBackgroundMusic(const char* pszFilePath, bool bLoop)
{
	std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);
    playBackgroundMusicJNI(fullPath.c_str(), bLoop);
}
void SimpleAudioEngine::preloadBackgroundMusic(const char* pszFilePath)
{
    std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);
    preloadBackgroundMusicJNI(fullPath.c_str());
}
float SimpleAudioEngine::getSoundDuration(char const *pszFilePath, unsigned int channelNum) {
    std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);
    return getSoundDurationJNI(fullPath.c_str(), channelNum);
}
void SimpleAudioEngine::playSound(const char* pszFilePath, bool bLoop, unsigned int channelNum)
{
	std::string fullPath = getFullPathWithoutAssetsPrefix(pszFilePath);
    playSoundJNI(fullPath.c_str(), bLoop, channelNum);
}