delay in audio

I’m using

media.playSound( “squish_wav.wav” ) function but in a very fast level there is a delay in playing the audio.

Is there anything that can be done, it kind of freezes the UI for a split of a second and its very annoying. If I turn the sounds off in the game everythings fine. Can the audio file be loaded in to memory somehow?

We recommend media.play Event Sound() for sounds that need to be played quickly.

We recommend media.play Event Sound() for sounds that need to be played quickly.