On 3/3/08, nooroon <nooroon at gmail.com> wrote: > 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 > You should see these two lines, which you can comment out to disable OSS: export CFLAGS += -DPA_USE_OSS=1 export PORTAUDIO_OBJS += pa_unix_oss.o Another option is to use --capture-dev and --playback-dev command line arguments of pjsua to select your ALSA device, of course. cheers, -benny > 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