mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
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:
+1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user