You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: