diff --git a/CocosDenshion/wophone/SimpleAudioEngine.cpp b/CocosDenshion/wophone/SimpleAudioEngine.cpp index a8b6edf8db..5e9898bee6 100644 --- a/CocosDenshion/wophone/SimpleAudioEngine.cpp +++ b/CocosDenshion/wophone/SimpleAudioEngine.cpp @@ -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); diff --git a/cocos2dx/proj.wophone/cocos2d-wophone.vcproj b/cocos2dx/proj.wophone/cocos2d-wophone.vcproj index 609a124242..fcec818c97 100644 --- a/cocos2dx/proj.wophone/cocos2d-wophone.vcproj +++ b/cocos2dx/proj.wophone/cocos2d-wophone.vcproj @@ -844,6 +844,10 @@ RelativePath="..\textures\CCTextureCache.cpp" > + +