-
Notifications
You must be signed in to change notification settings - Fork 565
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
Cannot open recording stream on Motorola Moto G 2nd Gen #192
Comments
It appears that the Moto G doesn't support floating point recording. I verified this by commenting out this block. |
What version was the Moto G running? Is this a version issue or vendor implementation issue? |
The Moto G was running API 21 LXB22.99-16.3. The only reference I can find to that error message is here: https://android.googlesource.com/platform/frameworks/wilhelm/+/4597a74/libopensles/android_AudioRecorder.cpp#61 So it could be a version issue, although I was sure that API 21 had float support for recording streams. Maybe that was introduced later? |
I just tested a Samsung Galaxy S4 running API 21 and ran into the same issue. Looks like it is a version issue. |
Once we figure out what is the expected behaviour we should definitely add a test for this. |
It appears that float playback capability was added to Lollipop but float record capability was only added in Marshmallow. Verified by running repro steps on emulators: API 21 - error message |
Here is an attempt at addressing this issue: #205 As mentioned in the PR, I don't have the knowledge required to fully understand the consequences of those changes. See the description of the PR for more details :) |
My bad, there is already an opened PR addressing this issue: #194 Sorry for all that :/ |
Steps to repro:
Expected outcome:
Actual outcome:
The following logcat output shows that the recording stream fails to be created:
The text was updated successfully, but these errors were encountered: