Jump to content
Sign in to follow this  

Android system can't create AudioRecord

Recommended Posts

For some reason, I cannot create an AudioRecord instance for recording voice on this board. I keep getting the error:

2023-10-20 20:39:00.146   282-393   AudioFlinger            audioserver                          E  createRecord() getInputForAttr return error -38
2023-10-20 20:39:00.147  4658-4736  IAudioFlinger           com.hussell.dukebox                  E  createRecord returned error -38
2023-10-20 20:39:00.147  4658-4736  AudioRecord             com.hussell.dukebox                  E  createRecord_l(135923737): AudioFlinger could not create record track, status: -38
2023-10-20 20:39:00.147  4658-4736  AudioRecord-JNI         com.hussell.dukebox                  E  Error creating AudioRecord instance: initialization check failed with status -38.
2023-10-20 20:39:00.148  4658-4736  android.me...udioRecord com.hussell.dukebox                  E  Error code -20 when initializing native AudioRecord object.

I have tried a bunch of stuff, and lookign through the source code of these files, but it seems something is happening in the native code. 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...