Hello all!
I’m utilizing Cocos Creator model 3.8.3.
Usually I’ve at all times used uncompressed audio information to play sounds, extra particularly wav information. Now I’ve been supplied with all of the sounds in mp3 format.
Let’s take a button click on occasion. I connect mp3 sound playback to this occasion. I take a look at it on a pc and the whole lot is okay. I take a look at it on a cellphone and I really feel a delay between the press and playback.
How can I eradicate this delay? I believe that changing such sounds to wav will permit this, proper? Solely then will the dimensions of the meeting enhance. However I used to be categorically forbidden to do away with compression. Possibly the engine has the flexibility to decompress sounds upfront?
Strive wanting into preloading:
I don’t perceive how it will assist me?
By the point I do playOneShot(), the AudioClip has lengthy been loaded through sources.load().
I imagine I’ve preloaded to keep away from delays up to now. MP3 doesn’t get uncompressed. It’s compressed however can’t be taken again right into a lossless file kind like wav. Wav ought to take longer to load being so much greater in filesize in comparison with MP3 however like I stated, I’ve a sense preloading would possibly clear up your challenge.