mirror of https://github.com/axmolengine/axmol.git
issue #633 add playeffect loop in wophone
This commit is contained in:
parent
ef02190b47
commit
1e8e036da7
|
@ -219,6 +219,12 @@ unsigned int SimpleAudioEngine::playEffect(const char* pszFilePath, bool bLoop)
|
|||
soundParam.dataLen = pElement->nDataSize;
|
||||
soundParam.dataType = SOUND_TYPE_WAVE;
|
||||
soundParam.volume = (int) (0xFFFF * s_fEffectsVolume);
|
||||
int nTimes = 0;
|
||||
if (bLoop)
|
||||
{
|
||||
nTimes = -1;
|
||||
}
|
||||
soundParam.loopTime = nTimes;
|
||||
|
||||
nRet = s_pEffectPlayer->Play(soundParam);
|
||||
} while (0);
|
||||
|
|
|
@ -844,6 +844,10 @@
|
|||
RelativePath="..\textures\CCTextureCache.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\textures\CCTexturePVR.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="tileMap_parallax_nodes"
|
||||
|
|
Loading…
Reference in New Issue