Permission denied on dev/snd/dsp?

All your problems with Audio, Video and Images.

Permission denied on dev/snd/dsp?

Postby Oceansoul » Tue Jan 19, 2010 5:48 pm

Hi there,

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
Oceansoul
Freshman
Freshman
 
Posts: 3
Joined: Tue Jan 19, 2010 5:40 pm

Top

Postby Oceansoul » Mon Jan 25, 2010 9:41 am

So nobody has an idea about this? Is noone else working with the audio hardware, using NDK?
Or did I not give enough info?

Oceansoul
Oceansoul
Freshman
Freshman
 
Posts: 3
Joined: Tue Jan 19, 2010 5:40 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Google Feedfetcher and 12 guests