setYielding

open fun setYielding(wait: Boolean): Sound

Whether to wait for currently playing non-looping sounds to finish before playing this sound.

Return

this Sound object

Parameters

wait

whether to wait for non-looping sounds to finish, default is false, where sounds can overlap and play simultaneously