Projects > cpp > Issues > Feature #633

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

add loop feature to SimpleAudioEngine::playEffect(const char*, int)

Feature #633 [Closed] 2011-07-25 23:00 . Updated almost 9 years ago
  1. it’s better to be a “unsigned int” param instead of “bool”, the default value is 1. Users can input how many time they would like to play. if set to 0, it means loop forever.
  2. please don’t forget to set “1” as default value, which can compatible with our previous versions, and compatible with cocos2d-iphone
  3. the best situation is the platform api offers loop feature
  4. the worst, platform api have no loop feature, and the playEffect is async. Please take care of the callback or msg notification when a effect is end, than we get the notification and start the next loop. 2011-07-25 23:02
  • Assignee set to zhangxm
zhangxm 2011-07-26 01:22

It can only loop or not, can not set playing times.
iOS & Andorid is ok.

zhangxm 2011-07-26 01:24
  • Assignee changed from zhangxm to liswei
zhangxm 2011-07-27 20:01
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:24b6056c1a2a68b9f9b5078ecab140e3fe63b8aa.

liswei 2011-07-27 20:01

Applied in changeset commit:3aa994820c289e4a0819ed2a1f410cc8388f66cb.

zhangxm 2011-08-01 19:35
  • Status changed from Resolved to Closed 2012-05-25 08:06
  • Project changed from cocos2d-x to cpp
  • Category deleted (5)
  • Target version deleted (cocos2d-1.0.1-x-0.9.1)
agenindonesia 2014-11-25 20:33 Agen Texas Poker Dan Domino Online Indonesia Terpercaya
OK, I’ve updated the announcement and added a link to zipball on google code. Thank you for reminding me.
Agen Indonesia | Agen Bola | Poker Indonesia

ionliga 2014-11-28 14:40

The optimization introduces a bug where the priority and Touch Mode will not get changed if the list is locked.
The most straight forward fix is to merge the pHandlersToAdd and pHandlersToRemove into a queue and process through all of them in the order they are received Agen Texas Poker dan Domino Online Indonesia Terpercaya | Agen Bola | Taruhan Bola | Agen Bola | Agen Judi Bola Online, Agen Judi Casino Online Indonesia Terpercaya | TopSEONOW

Atom PDF

Start date:2011-07-25
Due date:
% Done:


Target version:-