cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

iOS Safari web audio sound crackles

Open yoki0805 opened this issue 3 years ago • 4 comments

Cocos Creator version

3.4.2

System information

iOS 15.4 Safari, iPhone 6S, iPhone 8, iPhone SE2

Issue description

Using AudioSource component to play sounds in many times. 5 minutes later, iPhone will be playing noise.

Relevant error log output

No response

Steps to reproduce

To play sounds in many times.

Minimal reproduction project

NewProject.zip

yoki0805 avatar May 06 '22 10:05 yoki0805

I have experienced the same with Howler, I think it has to do something with performance of the game, memory and stuff. I know sounds eat up a lot of memory at least. I don't think it's something related directly to the CC sound engine. Just my guess.

Ronsku avatar May 28 '22 20:05 Ronsku

Yes, it's happening later with newer iPhone (more larger memory). But, I did many projects in 2.4.x version, they didn't seem to have this issue. Android works fine, either 2.4.x or 3.4.2.

yoki0805 avatar May 29 '22 11:05 yoki0805

@yoki0805 do you have the same drawcalls in CC2 as in CC3 in your games? I had myself slight issues with performance in CC3, for example opacity = 0 causes a drawcall in CC3 which it didn't in CC2. I have created this issue/suggestion for the drawcalls on invisible items https://github.com/cocos/cocos-engine/issues/11210.

Ronsku avatar May 29 '22 21:05 Ronsku

No, they are different games, but I control the drawcalls in 70~100 times for my games.

yoki0805 avatar May 30 '22 01:05 yoki0805

Fixed at this PR

bofeng-song avatar Jul 24 '23 05:07 bofeng-song