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

Make it easier to use by showing how to load a buffer #4

Open
sole opened this issue Aug 23, 2015 · 1 comment
Open

Make it easier to use by showing how to load a buffer #4

sole opened this issue Aug 23, 2015 · 1 comment

Comments

@sole
Copy link
Member

sole commented Aug 23, 2015

Newcomers might have no clue of how to load a buffer (what is a buffer EVEN?) so that should be demonstrated in the example instead of leaving it up as homework

@sole
Copy link
Member Author

sole commented Aug 23, 2015

Ways to load a buffer:

  • load a sample with XMLHTTPRequest, then decode the binary data with the audioContext's decodeAudioData method
  • if using browserify, inline the binary data with browserify transforms as demonstrated in the drum-machine demo

any other ways?

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