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

Fix audio being cut off in mic.html worker example #37

Merged
merged 1 commit into from
May 6, 2017

Conversation

varenc
Copy link
Contributor

@varenc varenc commented Jan 24, 2017

The MDN docs on createScriptProcessor recommends developers allow the browser to choose
the best bufferSize. It seems large buffer sizes reduce the load
but also reduce quality. Prior to this commit the maximum possible buffer size was chosen
and that seemed to result in the last part of the audio being clipped off in the recording.

Also worth noting is that apparently the ScriptProcessorNode was deprecated in 2014
but the replacement, Audio Workers, has yet to be implemented in any browsers.

closes #36 I created

The MDN docs on createScriptProcessor recommends developers allow the browser to choose
the best bufferSize.  It seems large buffer sizes reduce the load
but also reduce quality.  Prior to this commit the maximum possible buffer size was chosen
and that seemed to result in the last part of the audio being clipped off in the recording.

Also worth noting is that apparently the ScriptProcessorNode was deprecated in 2014
but the replacement, Audio Workers, has yet to be implemented in any browsers.
@varenc
Copy link
Contributor Author

varenc commented May 2, 2017

ping to @zhuker?

@geeee geeee merged commit 17635f6 into zhuker:master May 6, 2017
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

Successfully merging this pull request may close these issues.

mic.html worker example cuts the audio stream off early
2 participants