hudamalmsteen / csipsimple_test

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

"Error Creating AudioRecord instance: initialization check failed." #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

- I'm developing a android sip-ua program for test purpose using csipsimple 
source. I'm testing to make call and it runs good on android platform version 
2.0.1 but not on 2.1 and 2.2.
The fist call is done successfully, but second call is dead. 

You can see the detail messages in log files I attached.
Follow is the error messages.

07-19 06:06:49.255: ERROR/AudioRecord(307): Could not get audio input for 
record source 1
07-19 06:06:49.255: ERROR/AudioRecord-JNI(307): Error creating AudioRecord 
instance: initialization check failed.
07-19 06:06:49.255: ERROR/AudioRecord-Java(307): [ android.media.AudioRecord ] 
Error code -20 when initializing native AudioRecord object.

Great thanks.

Best regards.
Xenykr Maeng

Original issue reported on code.google.com by winfa...@gmail.com on 19 Jul 2010 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
According to your traces, the native library is outdated. You should update the 
svn or at least the android_jni_driver.cpp, then clean and build again the .so.

Should solve your issue, since I think that I have already corrected it. 
Be aware of the fact parts (JNI wrapper) of the java code has also to be 
updated to match the new .so.

Besides, sounds you are using the SDK emulator which is not really well 
supported since audio driver is not fully functional.

Original comment by r3gis...@gmail.com on 19 Jul 2010 at 8:46

GoogleCodeExporter commented 9 years ago
YOU ARE RIGHT! I SOLVED IT!
Thanks for your fast answer.

Best regards.
Xenykr Maeng.

Original comment by winfa...@gmail.com on 19 Jul 2010 at 10:53

GoogleCodeExporter commented 9 years ago
Could you explain how you updated these, just for me, please

Original comment by Surhum...@gmail.com on 28 Feb 2011 at 10:52

GoogleCodeExporter commented 9 years ago
@Surhum...: You can find out the solution by wiki page 'HowToBuild'.

Original comment by winfa...@gmail.com on 28 Feb 2011 at 11:38