cocos2d x - Why does SimpleAudioEngine behave differently on each platform, and is there a way to configure it? -


i using simpleaudioengine play sound effects on app. works on windows phone 8.1 (universal), android, , ios. noticed following behaviour not consistent:

  1. in ios, if listen music on apple music app, , launch game, music silenced.
  2. in android, music google play continued played after launching app. can hear sound effects game.
  3. in windows phone behaviour same android. why different ios, , there way can configured ?

i using cocos2d-x v3.7 (c++)

on ios, simpleaudioengine uses different codebase, , default settings in cdaudiomanager play effects , music (only if no other music playing). if edit cdaudiomanager code can change default settings of simpleaudioengine, or alternatively, use cdaudiomanager on ios.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -