thanks for your answer. I've used the stutter file to give you an easy to use example, but the same problem occurs when I use a normal wav file. In the os-auto.mak, i don't find any PA_USE_OSS, but i've got this line : AC_PA_USE_ALSA=1 but the playfile utility still uses "/dev/dsp(OSS) for playing" moreover, when I remove snd_pcm_oss and snd_seq_oss modules, the wav file is play correctly, and alsa driver is used as default one : # pjsip-apps/bin/samples/playfile-x86_64-unknown-linux-gnu ../stutter.wav 10:24:57.846 os_core_unix.c pjlib 0.8.0 for POSIX initialized 10:24:58.063 pasound.c PortAudio sound library initialized, status=0 10:24:58.063 pasound.c PortAudio host api count=2 10:24:58.063 pasound.c Sound device count=8 10:24:58.064 pjlib select() I/O Queue created (0x684348) 10:24:58.064 wav_player.c File player '../stutter.wav' created: samp.rate=8000, ch=1, bufsize=4KB, filesize=149KB 10:24:58.084 pasound.c Opened device 6: default(ALSA) for playing, sample rate=8000, ch=1, bits=16, 160 samples per frame, latency=42 ms 10:24:58.084 pasound.c Starting default stream.. 10:24:58.085 pasound.c Done, status=0 10:24:58.125 pasound.c Player thread started Playing ../stutter.wav.. But it crashes, and I can't exit the apps, I'v to use Ctrl C. Do you have any idea to make pjsip use the default alsa driver? thanks 2008/2/29, Benny Prijono <bennylp at pjsip.org>: > > On 2/29/08, nooroon <nooroon at gmail.com> wrote: > > > I am on linux. Here is what happens when I play file located here : > > > http://trac.pjsip.org/repos/attachment/wiki/audio-problem-dropouts/stutter.wav > > > > # 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 > > 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 > > alsa. > > 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. > > > cheers, > -benny > > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080303/05df4408/attachment.html