asterisk/formats
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
..
Makefile Merged revisions 93180 via svnmerge from 2007-12-17 07:25:35 +00:00
format_g723.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_g726.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
format_g729.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_gsm.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_h263.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
format_h264.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
format_ilbc.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_jpeg.c formatting cleanup on the header, 2007-11-23 09:03:33 +00:00
format_ogg_vorbis.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
format_pcm.c Merge changes from team/russell/g722-sillyness ... 2008-03-07 00:24:58 +00:00
format_sln.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_sln16.c minor formatting changes 2008-01-10 17:30:24 +00:00
format_vox.c implement the split of file.h and mod_format.h 2007-11-22 00:53:49 +00:00
format_wav.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
format_wav_gsm.c Merged revisions 90155 via svnmerge from 2007-11-29 17:50:44 +00:00
msgsm.h silence some more compiler warnings 2006-02-23 18:00:50 +00:00