issue #633 add playeffect loop in wophone

This commit is contained in:
liswei 2011-07-26 17:04:39 +08:00
parent ef02190b47
commit 1e8e036da7
2 changed files with 10 additions and 0 deletions

View File

@ -219,6 +219,12 @@ unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath, bool bLoop)
soundParam.dataLen = pElement->nDataSize; soundParam.dataLen = pElement->nDataSize;
soundParam.dataType = SOUND_TYPE_WAVE; soundParam.dataType = SOUND_TYPE_WAVE;
soundParam.volume = (int) (0xFFFF * s_fEffectsVolume); soundParam.volume = (int) (0xFFFF * s_fEffectsVolume);
int nTimes = 0;
if (bLoop)
{
nTimes = -1;
}
soundParam.loopTime = nTimes;
nRet = s_pEffectPlayer->Play(soundParam); nRet = s_pEffectPlayer->Play(soundParam);
} while (0); } while (0);

View File

@ -844,6 +844,10 @@
RelativePath="..\textures\CCTextureCache.cpp" RelativePath="..\textures\CCTextureCache.cpp"
> >
</File> </File>
<File
RelativePath="..\textures\CCTexturePVR.cpp"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="tileMap_parallax_nodes" Name="tileMap_parallax_nodes"