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:
- in ios, if listen music on apple music app, , launch game, music silenced.
- in android, music google play continued played after launching app. can hear sound effects game.
- 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
Post a Comment