cocos2d-x 同时播放多个音效的问题
发布时间:2020-12-14 19:43:24 所属栏目:百科 来源:网络整理
导读:cocos2d-x 同时播放多个音效的时候,会发现有的音效放不出,有的循环音效放着放着就没了 后来发现猫腻在Cocos2dxSound.java里: privatestaticfinalintMAX_SIMULTANEOUS_STREAMS_DEFAULT=5; SoundPool构造的时候要指定并发音频流的数量 public SoundPool (in
cocos2d-x 同时播放多个音效的时候,会发现有的音效放不出,有的循环音效放着放着就没了 后来发现猫腻在Cocos2dxSound.java里: privatestaticfinalintMAX_SIMULTANEOUS_STREAMS_DEFAULT=5; SoundPool构造的时候要指定并发音频流的数量 publicSoundPool(int maxStreams,int streamType,int srcQuality)Added inAPI level 1 This constructor was deprecated in API level 21. Constructor. Constructs a SoundPool object with the following characteristics: Parameters
Returns
这里cocos2d-x设置成5了(I9100设成3),可以手动改大一点,来解决问题 版本:cocos2d-x 3.0 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读