Just for those interested: I was able to "circumvent" my problem by using the AudioRecord class ...
On 4 sep, 15:51, Maarten Wijnants <maarten.wijna...@gmail.com> wrote: > 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, MaartenWijnants --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---