I'm playing with the Snapback SDK
.
When starting a WaveGestureHandler
with microphone driven adapters (Snap
, Blow
) I get this error:
AudioFlinger could not create record track, status: -1
AudioRecord-JNI﹕ Error creating AudioRecord instance: initialization check failed with status -1.
android.media.AudioRecord﹕ Error code -20 when initializing native AudioRecord object.
FATAL EXCEPTION: BlowDetector
Process: com.mypackage.app, PID: 27926
java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
How do I initialize this AudioRecord
? I've looked at the provided examples but I can't find where to do it.
I'm testing on a Nexus 5 with Android L.