Web Audio buffering improvement

This is the [patch for issue 2092](https://github.com/kripken/emscripten/issues/2092#issue-26853188) in pull request form, as requested by @juj [here](https://github.com/kripken/emscripten/issues/2092#issuecomment-34054958).