My app is phone dialer for blind people, and there is a key pad that says the number that gets typed, and I am making a playback button to say all the numbers that get typed.
I am trying to get all numbers to play in sequence after each other but the only problem is that I can't do this with sound pool and media player class is not helping me is there any way to do this with sound pool to make delay between the first number and the second number.
Here's the code I am using to retrieve the user input:
char char1 = text.charAt(0);
int i = soundIdShot2 + char1 - 50;
sp.play(i, 1, 1, 0, 0, 1f);
char char2 = text.charAt(1);
int s = soundIdShot2 + char2 - 50;
sp.play(s, 1, 1, 0, 0, 1f);
I fixed the problem by adding a handler for every sound and making delay between every sound.