I prepare:
private static SoundPool soundPool; private static HashMap<Integer, Integer> soundPoolMap; soundPool = new SoundPool(2, AudioManager.STREAM_MUSIC, 100); soundPoolMap = new HashMap<Integer, Integer>(3); How to download from the resource, I understood (line below)
soundPoolMap.put( S1, soundPool.load(context, R.raw.s1, 1) ); And how to put a file from an SD card there?
I prepare the file myself as follows:
File FileOut = new File(getExternalFilesDir(path), file_out); In general, the task is as follows: there are audio files (wav format) on the sd card. You need to play them in a certain order. The order will be in the form of a playlist. And yet, there should be no pauses between playing the files, i.e. one ended, immediately the other begins.
Perhaps this task can be solved without resorting to SoundPool. What do you advise?