Block on frameout if the hardware has enough samples to complete a frame.
authorJonathan Rose <jrose@digium.com>
Wed, 9 May 2012 19:28:47 +0000 (19:28 +0000)
committerJonathan Rose <jrose@digium.com>
Wed, 9 May 2012 19:28:47 +0000 (19:28 +0000)
commit6f6af213833e0c4bcc33cc4de2d6b457d259687c
tree2ebfb067354b4fbc1b4b9cc52db6d4c4d4b8db1b
parent879f6417c6339228bfd66883ddf8f3bb5a921daf
Block on frameout if the hardware has enough samples to complete a frame.

Fixes some problems with skipping audio in elaborate scenarios involving
multiple codecs by making codec_dahdi operate in a more synchronous
fashion similar to codec_g729. This change also fixes the use of file
conversion tools from Asterisk's CLI. This change may cause the thread
responsible for transcoding audio to block briefly (Shaun Ruffell describes
this as 'several milliseconds') while waiting for the hardware transcoder.

(closes issue ASTERISK-19643)
reported by: Shaun Ruffell
Patches:
0001-codec_dahdi-Block-on-frameout-the-hardware-has-enoug.patch
uploaded by Shaun Ruffell (license 5417)
........

Merged revisions 365989 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 365990 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
codecs/codec_dahdi.c