Thanks Glenn,

On 27 August 2011 04:32, Glenn Kasten <gkas...@android.com> wrote:

> Some (but not all) Android devices do have ALSA kernel drivers. But
> even for those devices that do have ALSA in the kernel, the
> AudioFlinger part of mediaserver generally takes over the audio
> output.  So in short, you might get this to work on some devices, but
> probably only if you disable mediaserver.  I'd recommend another
>

Yes, the native binary is working after stopping mediaserver ,  same code
when i call it from apk using JNI is not working,


> approach, such as trying to modifying the part of the application that
> calls ALSA user mode to instead call an Android-supported API [either
> Java AudioTrack / MediaPlayer via JNI, or native audio based on OpenSL
> ES].


 hmm, i will try to use java api or OpenSL.





> On Aug 25, 10:47 am, arif <arifo...@gmail.com> wrote:
> > Hi All,
> >
> > I am porting a audio playback application to Android platform (written
> > in native code),  it uses alsa library,i tested this by creating a
> > binary and is working fine,  now i am planing to run with the apk,
> > for creating native shared library there is no alsa support in NDK,
> >
> > Will this work if i compile whole alsa library along with my native
> > code using JNI,  or apk code is able to load asound alsa shared
> > library  from /system/lib  ??
> >
> > Thanks
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to