We have cross compiled PJSIP for android.We are using ALSA for sound and
for this enabled the flag for Alsa in config_site.h.
While cross compiling pjsip for android it looks for libasound.so
library.So we cross compiled alsa-lib and alsa-utils and placed the
libasound.so and alsa.conf file at android /data directory.
But when we run the pjsua binary on adb shell,we get following errors:
snd_config_search_definition() : error = No such file or
directorysnd_config_search_definition() : key =
defaults.pcm.devicesnd_config_search_definition() : key =
refersnd_config_search_definition() : error = No such file or
directorysnd_config_search_definition() : key =
defaults.pcm.subdevicesnd_config_search_definition() : key =
refersnd_config_search_definition() : error = No such file or
directorysnd_config_search_definition() : key =
defaults.namehint.extendedsnd_config_search_definition() : key =
plugsnd_config_search_definition() : key =
plugsnd_config_search_definition() : key =
shmsnd_config_search_definition() : key = shmsnd_config_search_definition()
: key = teesnd_config_search_definition() : key =
teesnd_config_search_definition() : key =
filesnd_config_search_definition() : key =
filesnd_config_search_definition() : key =
nullsnd_config_search_definition() : key = null06:41:09.221 alsa_dev.c
..ALSA driver found 0 devices06:41:09.221 alsa_dev.c ..ALSA
initialized
We get the same kind of errors when we try running aplay -l (cross
compiled alsa-utils) on adb shell.
Can we use ALSA in such a way for android?
Is there any other way to access sound devices?