Portaudio OSS hogs 100% CPU time

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

 



On Tue, Sep 2, 2008 at 2:20 PM, Ruud Klaver <ruud at ag-projects.com> wrote:

> Hi,
>
> When Portaudio in PJSIP uses OSS instead of ALSA on linux, my program
> just hangs and consumes 100% cpu time. Does anyone else experience this?
>
> I have an strace of this happening right here:
> http://usr.cnix.ro/luci/strace.txt
> As you can see Portaudio keeps writing 00 bytes to /dev/dsp.
>
>
The 00 bytes probably is just silence PCM frames, so that's probably normal.
No idea about the 100% CPU usage, but does it happen with call or just "cc 0
0" will do it? You can try with different --clock-rate/--snd-clock-rate
(hoping to find one that's native to your sound card) and/or larger --ptime
if it helps.

Cheers
 Benny



> For the record, ALSA works just fine.
>
> Ruud Klaver
> AG Projects
>
> _______________________________________________
> 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/20080902/c0359ea3/attachment.html 


[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