asterisk/codecs
Russell Bryant 5ca5d97673 Merge changes from team/russell/g722-sillyness ...
Fix a number of other places where the number of samples in a G722 frame was
not properly handled because of various reasons.

main/rtp.c:
 - When a G722 frame is read from the smoother, the number of samples in the
   frame must be divided by 2 before being sent out over the network.  Even
   though G722 is 16 kHz, an error in some previous spec has made it so that
   we have to list the number of samples such as if it was 8 kHz.

main/file.c:
 - When scheduling the next time to expect a frame, take into account that the
   format of the file we're reading from may not be 8 kHz.

codecs/codec_g722.c:
 - When converting from G722 to slinear, g722_decode() expects its samples
   parameter to be in the silly (real samples / 2) format.  Make it so.
 - When converting from slinear to G722, properly set the number of samples in
   the frame to be the number of bytes of output * 2.

formats/format_pcm.c:
 - This format module handles G722, among a number of other formats.  However,
   the read() and seek() functions did not account for the fact that G722 has
   2 samples per byte.

(closes issue #12130, reported by rickross, patched by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-07 00:24:58 +00:00
..
g722 clean up assembler and preprocessor files if they are here too 2007-10-29 22:24:44 +00:00
gsm Merged revisions 82265 via svnmerge from 2007-09-11 21:43:47 +00:00
ilbc Solaris compat fixes 2007-12-14 21:09:17 +00:00
lpc10 clean up assembler and preprocessor files if they are here too 2007-10-29 22:24:44 +00:00
adpcm_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
codec_a_mu.c remove a number of #include <fcntl.h> which are either 2007-11-22 01:03:02 +00:00
codec_adpcm.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_alaw.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_g722.c Merge changes from team/russell/g722-sillyness ... 2008-03-07 00:24:58 +00:00
codec_g726.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_gsm.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_ilbc.c remove a number of #include <fcntl.h> which are either 2007-11-22 01:03:02 +00:00
codec_lpc10.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_resample.c Kevin noted that the thing that I _actually_ changed here was that I converted 2008-01-11 19:05:24 +00:00
codec_speex.c Merged revisions 98951 via svnmerge from 2008-01-16 01:17:25 +00:00
codec_ulaw.c codecs.conf really shouldn't be mandatory.. it never had been before, so let's go back to being optional. 2007-12-21 20:12:50 +00:00
codec_zap.c Merged revisions 98943 via svnmerge from 2008-01-15 23:31:53 +00:00
g722_slin_ex.h Add codec G.722 support. 2006-12-21 00:08:21 +00:00
g726_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
gsm_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
ilbc_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
log2comp.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
lpc10_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
Makefile Fix this so it doesn't force codec_g722 to get relinked every time 2008-01-10 00:17:02 +00:00
slin_adpcm_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_g722_ex.h Add codec G.722 support. 2006-12-21 00:08:21 +00:00
slin_g726_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_gsm_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_ilbc_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_lpc10_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_resample_ex.h Merge changes from team/russell/codec_resample 2007-12-31 21:22:31 +00:00
slin_speex_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
slin_ulaw_ex.h This change set fixes bug 8126 in trunk. It is implemented via compile time options, activated via the menuselect stuff, which defaults to the old way. non-zero sample data added. Translate tables expressed in microseconds instead of milliseconds, with 5-digit data now instead of 3, giving 2 more digits of precision. 2007-08-20 22:53:48 +00:00
speex_slin_ex.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
ulaw_slin_ex.h This change set fixes bug 8126 in trunk. It is implemented via compile time options, activated via the menuselect stuff, which defaults to the old way. non-zero sample data added. Translate tables expressed in microseconds instead of milliseconds, with 5-digit data now instead of 3, giving 2 more digits of precision. 2007-08-20 22:53:48 +00:00