Open ghost opened 10 years ago
Same problem here. Any ideas on how to play multiple loops at the same time ? Thanks
Create one seamlessloop object for each sound. Load every sound and call the callback to validate each sound is loaded and then start every sound.
loop1.addUri('/Content/sounds/song2/drums-new.mp3', 20000, "drums");
loop2.addUri('/Content/sounds/song2/bass.mp3', 20000, "bass");
loop3.addUri('/Content/sounds/song2/fxs.mp3', 20000, "fxs");
loop4.addUri('/Content/sounds/song2/guitars.mp3', 20000, "guitars");
loop5.addUri('/Content/sounds/song2/synth.mp3', 20000, "synth");
loop1.callback(function(){
validator++;
canPlay(validator);
});
....
canPlay(validator){
if(validator === 5){
loop1.start();
loop2.start();
loop3.start();
loop4.start();
loop4.start();
}
When I use the following code example, the 1st sound is not looping. var loop = new SeamlessLoop();
// After 10s stop only background (Loading_tune should still loop)