PJSIP with JACK Audio Connection Kit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/28/08, Matthias Geier <matthias.geier at gmail.com> wrote:
> Hello Benny!
>
>  Thank you very much for your quick response.
>
>  Apparently noone on this list uses JACK, right?
>  So I'm kind of on my own ...
>

Yep. :)

>  I tried your suggestions - sadly without much luck. See below.
>
>  >  That is quite strange, since we have our own copy of PortAudio in our
>  >  SVN (pulled directly from PA SVN), and this copy is locked to a
>  >  specific revision (do "svn pget svn:externals" in third_party
>  >  directory). So unless you removed this specific revision number in
>  >  your SVN flag, system update should not affect the build.
>
>
> The update didn't affect PortAudio itself but the JACK libraries which
>  are used by PortAudio.
>  And those sources are not in the source tree!
>

I see.

>
>  >  You can probably do that, by:
>  >   1) copying libportaudio.a from your /usr/lib to third_party/lib, and
>  >  renaming the filename to libportaudio-${TARGET}.a
>  >   2) modify third_party/build/portaudio to do nothing
>  >   3) Add "CFLAGS += -I/portaudio/inc/dir" in user.mak to let pasound.c
>  >  find the new PortAudio
>
>
> I did that.
>  I had also to add -lasound and -ljack and then it compiled without errors.
>

Okay, so we've got through the build problems at least.

>  However, pjsua doesn't work!
>
>  When I start it, I get following error:
>
>  >>> pjsua-i686-pc-linux-gnu: ../src/pjmedia/conference.c:1925:
>  put_frame: Assertion `frame->size == conf->samples_per_frame *
>  conf->bits_per_sample / 8' failed.
>
>  I think the hostapi used by PortAudio is in this case ALSA.
>
>  On the other hand, when I start the JACK audio daemon and then start
>  pjsua, I get the following:
>
>   17:50:41.607  pjsua_media.c pjsua_set_snd_dev(): attempting to open
>  devices @16000 Hz
>   17:50:41.615  pjsua_media.c ..failed: Invalid sample rate
>
>  ... and the same message with several sample rates including 44100, which I use.
>
>  ... and then:
>
>   17:50:41.759  pjsua_media.c Unable to open sound device: Invalid
>  sample rate [status=259003]
>   17:50:41.759  pjsua_media.c Error opening sound device: Invalid
>  sample rate [status=259003]
>   17:50:41.784   pjsua_core.c Shutting down...
>   17:50:42.787  pjsua_media.c Closing (null) sound playback device and
>  (null) sound capture device
>   17:50:43.115      pasound.c PortAudio sound library shutting down..
>
>  In this case, the hostapi should be JACK, I guess.
>
>  Do those error messages look familiar?
>

So it looks like pjsua is unable to open sound device using any known
sample rate. Does JACK have restrictions on which sample rate to use?
Something like maybe it only wants stereo?

It will be interesting to see the output of sndinfo (from the samples)
to see what devices are detected by PA. Although frankly I have no
idea whatsoever about JACK so this is way outside my territory.

cheers,
 -benny


>  What else could I try?
>
>  Thanks again,
>
> Matthias
>
>  _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
>  http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux