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

The site is using the synchronous AudioContext.createBuffer method #2

Open
padenot opened this issue Jul 8, 2013 · 1 comment
Open

Comments

@padenot
Copy link

padenot commented Jul 8, 2013

We are going to remove this method from the spec (and from implementations, although I can only speak for Firefox, here), because this method is very bad for browser/website responsiveness (because by running on the main thread, it prevents Javascript and other main thread stuff to execute).

We have written a little MDN page to give a couple advices to port code using webkitisms to make it spec-compliant 1, if you feel the need. Here, you want to use the AudioContext.decodeAudioData(buffer, callback) method. Since it is asynchronous, we can kick off a thread to do the decoding, notify your script when it is done, and your website keeps being responsive.

Keep up to good work, I'm excited about component.fm and the whole WebAudio component affair :-).

@jsantell
Copy link
Member

jsantell commented Jul 8, 2013

Oh, will do! Also noticed something changed in the last week or so (between 7/3/2013 and 7/6/2013) in the nightlies causing this to stop working in FF -- will have to dig into that too

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