I am absolutely new to Android. Just installed the SDK and NDK and tried to write (after Hello World) my first lib. So I wrote a java-wrapper class and a native c lib. And that works well so far.
Now I wanted to access the audio device. Intention is to get an audio stream.
I looked into Android´s AudioHardwareGeneric class for info and found that there they access dev/eac (which I have not in my file structure). So I tried with
- Code: Select all
::open("dev/snd/dsp", O_RDWR, 0666);
But I always get errno 13 -> permission denied.
Can anybody help me there? How can I access the audio device? Or what am I generally doing wrong (must be something
)?
Thanks.
Oceansoul

