Fix loop audio would stop for ios system (#10094)

* Fix loop audio would stop for ios system

* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.
* Issue could be solved: 
* https://github.com/cocos2d/cocos2d-x/issues/19480, 
* https://github.com/cocos-creator/3d-tasks/issues/11135
This commit is contained in:
timlyeee
2022-02-16 11:59:03 +08:00
committed by GitHub
parent ac6399f29a
commit d2e4b75463
4 changed files with 11 additions and 3 deletions
+1
View File
@@ -13,6 +13,7 @@ const excludes = [
let result = [];
const cdbFile = path.join(__dirname, '../../build/compile_commands.json');
if (fs.existsSync(cdbFile)) {
const db = JSON.parse(fs.readFileSync(cdbFile, { encoding: 'utf8' }));
for (let f of ARGS) {