prevent the sound thread from consuming all the available CPU
authorLuigi Rizzo <rizzo@icir.org>
Sat, 18 Nov 2006 08:19:41 +0000 (08:19 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 18 Nov 2006 08:19:41 +0000 (08:19 +0000)
commit34ec231da7d9524963c9586d295c6f303195b04c
tree6a4beb5d92416ec5eccc8e0e5a3cedf15e43068d
parent6dcb17baafe8e64e97d40e671ec68c01659ff780
prevent the sound thread from consuming all the available CPU
doing busy-wait on the output audio device.
As it is set now, it tries to push a frame every 10ms,
which is still too frequent but avoids deep restructuring
of the code (which i should do, though).

Note, this is only for ring tones, regular audio coming
from the network is still delivered as soon as it is
available.

Eventually this could well end up in the 1.4 branch, but
since i am probably the only user of chan_oss there isn't
much urgency to do that.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_oss.c