[pjsip] sound cut
nooroon at gmail.com
Fri Feb 29 11:05:02 EST 2008
I am on linux. Here is what happens when I play file located here :
# pjsip-apps/bin/samples/playfile-x86_64-unknown-linux-gnu ../stutter.wav
15:12:42.349 os_core_unix.c pjlib 0.8.0 for POSIX initialized
15:12:42.403 pasound.c PortAudio sound library initialized, status=0
15:12:42.403 pasound.c PortAudio host api count=1
15:12:42.403 pasound.c Sound device count=1
15:12:42.404 pjlib select() I/O Queue created (0x6419d8)
15:12:42.404 wav_player.c File player '../stutter.wav' created:
samp.rate=8000, ch=1, bufsize=4KB, filesize=149KB
15:12:42.424 pasound.c Opened device 0: /dev/dsp(OSS) for playing,
sample rate=8000, ch=1, bits=16, 160 samples per frame, latency=32 ms
15:12:42.424 pasound.c Starting /dev/dsp stream..
15:12:42.503 pasound.c Player thread started
15:12:42.519 pasound.c Done, status=0
It seems to use OSS. I've installed libasound2-dev. PJSIP now compile with
With this new compiled pjsua, and if I remove module snd_pcm_oss and
snd_seq_oss, the file is played correctly, with alsa driver. But when those
module are loaded, oss drivers are used.
Also, when those modules are removed, /dev/dsp doesn't exists anymore, and
pjsua doesn't work because it doesn't have device capture.
Do you know how can I forced pjsua to use alsa drivers instead of oss
driver, without removing modules?
2008/2/29, Benny Prijono <bennylp at pjsip.org>:
> On 2/29/08, nooroon <nooroon at gmail.com> wrote:
> > hi,
> > thanks for quick your answer.
> > the build.mak, generated by the ./configure, contains this line :
> > export APP_CFLAGS := -DPJ_AUTOCONF=1\
> > -O2
> > I thinks this means that the pjsip is compiled with O2 optimization?
> I think that's the default. Are you on Linux? Does it use OSS or ALSA?
> (you can find out by running pjsua, then issue "cl" command and see
> the name of conference bridge's port #0).
> Normally playfile should play fine, and most people who are having
> problem with audio only encounter the problem with pjsua (or when the
> conference bridge is used). So if you're having problem with playfile,
> that's a new problem and it's quite bad. :)
> Can you probably try with opening the sound device on different clock
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip