[pjsip] sound cut
bennylp at pjsip.org
Fri Feb 29 12:29:44 EST 2008
On 2/29/08, nooroon <nooroon at gmail.com> wrote:
> I am on linux. Here is what happens when I play file located here :
> # pjsip-apps/bin/samples/playfile-x86_64-unknown-linux-gnu
> 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
> Playing ../stutter.wav..
The stutter.wav is definitely not a good file to test stutter problem,
since it contains stutters itself!
> 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?
Currently this can only be done by editing os-auto.mak (generated by
configure) in third_party/build/portaudio directory, and remove
PA_USE_OSS macro declaration.
More information about the pjsip