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

Inconsistent buffer size upon decode? #5

Open
kanatliemre opened this issue May 27, 2017 · 1 comment
Open

Inconsistent buffer size upon decode? #5

kanatliemre opened this issue May 27, 2017 · 1 comment

Comments

@kanatliemre
Copy link

I'm using the encoder with the web audio api to encode 16384 sample long buffers, then I convert them to ArrayBuffers and send to another computer via nodeJS. However when I decode these ArrayBuffers using audioContext.decodeAudioData() the resulting audioBuffer I get varies in sample size, for silent audio it becomes 16960 samples long. This problem causes glitchy audio at the other end.

Any idea what might be causing this? or is my encode/decode strategy wrong?

@eyalcohen7
Copy link

This also happens to me, did you find a way around it?

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