I'm creating a sampler app for school, I've made a code wich plays a sample when I press and hold a button and stops when I release it. My problem is that it has too many latency, it takes too long after I press the button to play the sound.
here's my code:
public boolean onTouch(View arg0, MotionEvent theMotion)
sample = MediaPlayer.create(MainActivity.this, R.raw.bassdrum);
my audio files are now mp3's..