I want to play a gun shot sound continuously by onTouch. I am doing this for automatic gun sounds. So i have problem with there is delay in sound looping. which does not giv
use SoundPool instead of MediaPlayer.
SoundPool sP = new SoundPool(2, AudioManager.STREAM_MUSIC, 0); gunshot = sP.load(this, R.raw.gunshot, 1); sP.play(gunshot, 1, 1, 0, 0, 1);