Sound Device Iteration

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

 



Hi Esben,

Assumed you are using the SVN version, pjsua on linux is configured to
be linked with host API OSS & ALSA without JACK while the devices you
are looking for seem to be JACK, so I guess that's why...

To enable JACK host API in the pjsua, I think you can start with:
1. modify the makefile (third_party/build/portaudio/os-auto.mak), e.g:
export CFLAGS += -DPA_USE_JACK=1
export PORTAUDIO_OBJS += pa_jack.o
2. create a pa_jack.c in the third_party/build/portaudio/src, which
actually refer to the real pa_jack.c from PortAudio (you can see other
files in above directory how to do that).

Cheers,
nanang


On 07/06/2008, Esben Stien <b0ef at esben-stien.name> wrote:
> Having trouble making pjsip produce any sound. I'm first looking at
> iteration through the devices and it seems it's not picking up all my
> devices, like the portaudio test utility, pa_devs, which is picking up
> 8 devices.
>
> I see this, when starting pjsua:
>
> 03:24:18.750      pasound.c Opened device jack(ALSA)/jack(ALSA) for
> recording and playback, sample rate=96000, ch=1, bits=16, 1920 samples per
> frame, input latency=1680005 ms, output latency=5 ms
>  03:24:18.750      pasound.c Starting jack stream..
>  03:24:18.795      pasound.c Done, status=0
>
> I find it strange that it lists "input latency" as 1680005 ms?.
>
> When I use the portaudio sound device iteration test utility, it gives me:
>
> no message buffer overruns
> no message buffer overruns
> PortAudio version number = 1899
> PortAudio version text = 'PortAudio V19-devel (built Jun  3 2008)'
> Number of devices = 8
> --------------------------------------- device #0
> [ Default Input, Default Output ]
> Name                        = jack
> Host API                    = ALSA
> Max inputs = 2, Max outputs = 2
> Default low input latency   =    0.005
> Default low output latency  =    0.005
> Default high input latency  =    0.021
> Default high output latency =    0.021
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel input =
> 	96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel output =
> 	96000.00
> Supported standard sample rates
>  for full-duplex 16 bit 2 channel input, 2 channel output =
> 	96000.00
> --------------------------------------- device #1
> [ Default JACK Audio Connection Kit Input, Default JACK Audio Connection Kit
> Output ]
> Name                        = system
> Host API                    = JACK Audio Connection Kit
> Max inputs = 17, Max outputs = 17
> Default low input latency   =    0.021
> Default low output latency  =    0.021
> Default high input latency  =    0.021
> Default high output latency =    0.021
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 17 channel input =
> 	96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 17 channel output =
> 	96000.00
> Supported standard sample rates
>  for full-duplex 16 bit 17 channel input, 17 channel output =
> 	96000.00
> --------------------------------------- device #2
> Name                        = xmms_jack_0_86138889
> Host API                    = JACK Audio Connection Kit
> Max inputs = 2, Max outputs = 0
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel input =
> 	96000.00
> --------------------------------------- device #3
> Name                        = minimixer
> Host API                    = JACK Audio Connection Kit
> Max inputs = 2, Max outputs = 8
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel input =
> 	96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 8 channel output =
> 	96000.00
> Supported standard sample rates
>  for full-duplex 16 bit 2 channel input, 8 channel output =
> 	96000.00
> --------------------------------------- device #4
> Name                        = PulseAudioOutput
> Host API                    = JACK Audio Connection Kit
> Max inputs = 8, Max outputs = 0
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 8 channel input =
> 	96000.00
> --------------------------------------- device #5
> Name                        = PulseAudioInput
> Host API                    = JACK Audio Connection Kit
> Max inputs = 0, Max outputs = 8
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 8 channel output =
> 	96000.00
> --------------------------------------- device #6
> Name                        = alsa-jack.jackC.3971.2
> Host API                    = JACK Audio Connection Kit
> Max inputs = 0, Max outputs = 2
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel output =
> 	96000.00
> --------------------------------------- device #7
> Name                        = alsa-jack.jackP.3971.3
> Host API                    = JACK Audio Connection Kit
> Max inputs = 2, Max outputs = 0
> Default low input latency   =    0.000
> Default low output latency  =    0.000
> Default high input latency  =    0.000
> Default high output latency =    0.000
> Default sample rate         = 96000.00
> Supported standard sample rates
>  for half-duplex 16 bit 2 channel input =
> 	96000.00
> no message buffer overruns
> ----------------------------------------------
>
> I do use many other portaudio apps.
>
> Running pjsip SVN on GNU/Linux-2.6.23.11-rt14
>
> The one device it's seeing does not output any audio.
>
> First of all, I'm wondering why pjsip is not seeing the same devices
> as pa_devs.
>
> Any pointers as to what I can try?
>
> --
> Esben Stien is b0ef at e     s      a
>          http://www. s     t    n m
>           irc://irc.  b  -  i  .   e/%23contact
>            sip:b0ef@   e     e
>            jid:b0ef@    n     n
>
> _______________________________________________
> 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