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
Audio-echo and native-audio in the sample project do not work in Nexus 6P #367
Comments
thanks for reporting the issue, will take a look! Please list your build environment like buildToolsVersion etc in case some are automatically updated by your tool. |
My build environment |
Adding link to another related issue: I saw it on Nexus 6, will investigate ( might be a little later: need to get other 2 things done ). |
Hi.. Audio-Echo sample is found not work in Android 7.1.1 version. Facing same issue. Any update on the above issue? |
Not yet, this one falling off, need to look at it later in the week. |
By increasing the buffersize the audio echo is heard in Nexus phone (Nexus 6 - Version 7.1.1). But heard with latency. Need some suggestion to reduce the latency. |
I need to have a look to see: the buffer size is in Fast-Audio path, once changed, it would be out of the fast audio path; between input stream and output stream is a queue of buffers: could you increase the buffer count ( it is macro ) instead -- if that works, the latency will increase, but it should still be within fast audio path. Also there is one effect I need to disable to make input into the fast path ( just not having time to get to it ). you might try them out ( you are in the center of "Pro Audio" war :-)) |
I am facing the same situation on Samsung Galaxy S4 running android 7.1.1. When I press the start button, I see this stacktrace:
And no sound comes out until I actually tap the start/buttons several times. |
Ok, I was able to get the audio to play on the Galaxy S4 consistently by changing AUDIO_SAMPLE_CHANNELS 1 value to 10 in The latency issue seems to be that framesPerBuf is reported as too high on problematic phones: Any clues? |
Adding a fix in #410 for echo sample, works on Not looking at the Native-Audio problem yet. |
echo sample works on Nexus 6p !! |
thanks, will get the change reviewed! |
merged into main. thank you for reporting the issue: will find some time to improve the sample concerning |
as for Galaxy S4 phone, the reported buffer size is 960 on android L. The audio path from vendor's OS build may not use the AOSP's source as is: they might have their own audio path. In the sample, the playback begins after captures 3 buffers, 3 x 960 / 48000Hz = 60ms, then plus platform delays ( mic --> audio driver --> SLES --> audio driver --> speakers: analog ), the latency is felt. Even I tried to use 2 buffers, do not feel too much difference from3 buffer case, then my guess is that the other part of the system for latency is more significant than from these 2 buffer introduced latency. Closing down this as native-audio fix also merged in. |
Audio-echo and native-audio in the sample project do not work in android nougat.
I tested it on the Nexus 6P ( Android Version 7.1.1 )
The text was updated successfully, but these errors were encountered: