sound cut

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

 



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



[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