pjsip on Android using ALSA

SW
Stefan Winkler
Mon, Apr 28, 2014 2:52 PM

Hi,

I'm trying to run pjsip on a custom android device (wandboard) with ALSA as audio backend. The Android sample app for pjsua2 uses OpenSL-ES as backend. Is it possible to use ALSA directly? What would be the steps necessary to configure pj with ALSA instead of OpenSL-ES when running on Android? Can someone point me to relevant documentation or source?
Thanks!

Stefan

Hi, I'm trying to run pjsip on a custom android device (wandboard) with ALSA as audio backend. The Android sample app for pjsua2 uses OpenSL-ES as backend. Is it possible to use ALSA directly? What would be the steps necessary to configure pj with ALSA instead of OpenSL-ES when running on Android? Can someone point me to relevant documentation or source? Thanks! Stefan
BG
Bill Gardner
Tue, Apr 29, 2014 3:22 PM

I haven't tried it but it seems like it should work if you put the
following in config_site.h and rebuild:

#define PJMEDIA_AUDIO_DEV_HAS_ALSA            1
#define PJMEDIA_AUDIO_DEV_HAS_OPENSLES    0

Bill

On 4/28/2014 10:52 AM, Stefan Winkler wrote:

Hi,

I'm trying to run pjsip on a custom android device (wandboard) with
ALSA as audio backend. The Android sample app for pjsua2 uses
OpenSL-ES as backend. Is it possible to use ALSA directly? What would
be the steps necessary to configure pj with ALSA instead of OpenSL-ES
when running on Android? Can someone point me to relevant
documentation or source?

Thanks!

Stefan


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

I haven't tried it but it seems like it should work if you put the following in config_site.h and rebuild: #define PJMEDIA_AUDIO_DEV_HAS_ALSA 1 #define PJMEDIA_AUDIO_DEV_HAS_OPENSLES 0 Bill On 4/28/2014 10:52 AM, Stefan Winkler wrote: > > Hi, > > I'm trying to run pjsip on a custom android device (wandboard) with > ALSA as audio backend. The Android sample app for pjsua2 uses > OpenSL-ES as backend. Is it possible to use ALSA directly? What would > be the steps necessary to configure pj with ALSA instead of OpenSL-ES > when running on Android? Can someone point me to relevant > documentation or source? > > Thanks! > > Stefan > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org