-
Notifications
You must be signed in to change notification settings - Fork 70
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
buffer time (size) configuration #70
Comments
Sorry, the buffer size gets decided by the native libraries themselves. |
I forked mic_stream and patched it with a fixed buffer at 512 bytes for both iOS and Android. it works well. https://github.com/aestesis/mic_stream on android I had some doubts it could work cause of AudioRecord.getMinBufferSize but I just ignore its result and it works ;) |
btw, I use this code to transform the pcm values in float
I thing there is maybe a bug in your example |
a fixed buffer size certainly works to some degree. I need to test it to ensure it doesn't misbehave, though. |
also yes, the example isn't exactly good code. Feel free to improve it if you enjoy it. |
for now the buffer seems to be set at 200 milliseconds (at 44100).
I would like to use mic_stream to do real time things
would be nice if we could setup the buffer size in milliseconds as config parameter.
for example in my case at 20ms for a 60 fps renderer
The text was updated successfully, but these errors were encountered: