I'm having trouble playing multiple sound files with the Minim audio player. Currently, I have an array of 3 AudioPlayers all initialized with separate audio files. I have a loop that goes to each cell of the array and plays the audio file.
minim = new Minim(this);
for (int i = 0 ; i < NUM_WAVS ; i++) {
snd[i] = minim.loadFile(i+".mp3");
}
mLong = new Minim(this);
for (int l = 0 ; l < LONG_WAVS ; l++) {
sndlong[l] = mLong.loadFile("long"+l+".mp3");
}
mDrone = new Minim(this);
for (int d = 0 ; d < DRONE_WAVS ; d++) {
drone[d] = mDrone.loadFile("drone"+d+".mp3");
}
The last AudioPlayer (mDrone) doesn't play unless I delete one of the first two, than it plays fine. So I know it can read the mp3s and play them. Will AudioPlayer only allow you 2 players?
Anybody know how to fix it?
Thanks