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

Ability to play a sound more than once at the same time? #48

Open
alamboley opened this issue Sep 20, 2013 · 2 comments
Open

Ability to play a sound more than once at the same time? #48

alamboley opened this issue Sep 20, 2013 · 2 comments

Comments

@alamboley
Copy link

Hey,

Is there any way to achieve this? At the moment I'm creating several times the same sound with different vars.

Also I'm not able to know if a sound is playing or not. I'm missing something?

Thanks for this awesome lib!

@jaysalvat
Copy link
Owner

Hello,

No unfortunately no way to have "multichannel" sound with HTML5 audio.

Sorry :)

Le 20 sept. 2013 à 09:39, Aymeric Lamboley [email protected] a écrit :

Hey,

Is there any way to achieve this? At the moment I'm creating several times the same sound with different vars.

Also I'm not able to know if a sound is playing or not. I'm missing something?

Thanks for this awesome lib!


Reply to this email directly or view it on GitHub.

@alamboley
Copy link
Author

My current process is when a sound may be played several times, I call it directly so it's always a new sound.
new buzz.sound("sounds/boucle-fin", {formats: ["mp3", "ogg", "aac", "wav"]}).play();
Note that I'm not sure concerning its performance, that may be an issue

However on Safari (6.0.5) it doesn't work...

I tried to add several vars for the same sound and choosing one which is not playing, but there isn't a simple function/var to call/check :)

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

2 participants