I have recently added some Sound Effects to my game, but the problem that I am dealing with now, is that they have for a half of second delay, or more sometimes.
Also, if I press repeatedly on that button, the sound effect does not play each time that I press on the button, and when I finish pressing, it plays at least once (I think from the previous presses).
How can I fix this problem? Here is my Play function, if it will help with something ...
public void Play(SFX effect)
{
if(!Muted)
{
switch(effect)
{
case SFX.ButtonTap:
tapSfx_Instance.Play();
break;
case SFX.Hit:
hitSfx_Instance.Play();
break;
case SFX.Die:
dieSfx_Instance.Play();
break;
}
}
}
Thanks.