have issues playing in loop first 2 playe in array play sound but after no sound
i.e.
isimpleraudioplayer[] players = new isimpleaudioplayer[12]
for(int i = 0; i < 12; i++)
{
players[i] = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer();
players[i].Loop = false;
}
count=0;
ontimer(){ //persecond
players[count].play();
if(count ==12)count=0;
}
and every cycle doesnt matter where i start the array of players like set count to 5, it will only play the sound from 2.
have issues playing in loop first 2 playe in array play sound but after no sound i.e. isimpleraudioplayer[] players = new isimpleaudioplayer[12] for(int i = 0; i < 12; i++) { players[i] = CrossSimpleAudioPlayer.CreateSimpleAudioPlayer(); players[i].Loop = false; }
players[0].Load(GetStreamFromFile("pathtofile")); ...... players[11].Load(GetStreamFromFile("pathtofile"));
count=0; ontimer(){ //persecond players[count].play(); if(count ==12)count=0; } and every cycle doesnt matter where i start the array of players like set count to 5, it will only play the sound from 2.