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

bufferSize different for Android and iOS #129

Open
losciur opened this issue Feb 13, 2024 · 0 comments
Open

bufferSize different for Android and iOS #129

losciur opened this issue Feb 13, 2024 · 0 comments

Comments

@losciur
Copy link

losciur commented Feb 13, 2024

Hi!
To obtain the same event.data.length in Android and iOS:

window.addEventListener('audioinput',  (event: any) => {
console.log("event.data.length",event.data.length)
}

I have to set different bufferSize property in captureCfg.
Example: to obtain event.data.length: 8192, I have to set:

  • for Android: bufferSize: 8192
  • for iOS: bufferSize: 16384 (8192 * 2)

Do you know this behaviour?

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