游戏开发
SoundPool 标签描述

cocos2d-x同时播放多个音效的时候,会发现有的音效放不出,有的循环音效放着放着就没了 后来发现猫腻在Cocos2dxSound.java里: private static final int MAX_SIMULTANEOUS_STREAMS_DEFAULT = 5; SoundPool构造的时候要指定并发音频流的数量 public SoundPool (intmaxStreams,intstreamType,intsrcQuality) Addedin APIlevel1 Thisconst...

  0zvMYZQ1vjpl   2023年11月02日   49   0   0 SoundPoolcocos2d-x音效