Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop dont dispatch ended event? #110

Open
papadasoft opened this issue Dec 31, 2016 · 0 comments
Open

loop dont dispatch ended event? #110

papadasoft opened this issue Dec 31, 2016 · 0 comments

Comments

@papadasoft
Copy link

sfx[valores[0]] = new buzz.sound(valores[1], {
	formats: [ "ogg", "mp3", "aac", "wav" ],
	preload: true,
	autoplay: true,
	loop: valores[2]=="1" ? false : true,
	volume: valores[3]
});
console.log("Colocando ended.");
sfx[valores[0]].bind("ended", function () {
	sfx_actual[valores[0]]++;
	console.log("Canal: " + valores[0]);
	console.log("Repeticiones: " + sfx_repeat[valores[0]]);
	console.log("Actuales: " + sfx_actual[valores[0]]);
	if(sfx_actual[valores[0]]==sfx_repeat[valores[2]])
		endSfx(valores[0]);
});

This code show the message 'Colocando ended.' but never show Canal:, Repeticiones: etc...

What appens? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant