Hi all,

When browsing the Android source code, I discovered the system/extras/
sound/playwav.c file which appears to contain code to directly access
the Android audio capturing hardware. I converted the WAV recording
code to an Android native library (.so file) which I linked to a Java
implementation using JNI.

When I run the code, I get a permission error. In particular,
attempting to open the /dev/msm_pcm_in device returns a negative
value. The open statement is as follows:

int afd = open("/dev/msm_pcm_int", O_RDWR);

Could this be due to a lack of root priviliges? If so, is there a
possible solution?

Kind regards,
Maarten Wijnants
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to