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
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].

On Aug 25, 10:47 am, arif <[email protected]> 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: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to