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

Different buffer types returned in different contexts #8

Open
danfinlay opened this issue Jun 15, 2015 · 2 comments
Open

Different buffer types returned in different contexts #8

danfinlay opened this issue Jun 15, 2015 · 2 comments

Comments

@danfinlay
Copy link

When I run locally, I get a UInt8Array, but then when I run on gh-pages I'm getting Buffer objects, and then the AudioContext.decodeAudioData method complains that it isn't a proper buffer array.

Any idea why the context would change the return type?

@danfinlay
Copy link
Author

I fixed this in my example for now by just checking for the buffer type and converting to the right type, but I'm not sure this is 100% ideal.

@max-mapper
Copy link
Owner

with browserify a buffer should also be a valid uint8array I think....

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