--- formats/format_g729.c (Asterisk 11.20) +++ formats/format_g729.c (working copy) @@ -45,2 +45,2 @@ -#define BUF_SIZE 20 /* two G729 frames */ -#define G729A_SAMPLES 160 +#define BUF_SIZE 10 /* one G729 frame */ +#define G729A_SAMPLES 80 --- formats/format_pcm.c (Asterisk 11.20) +++ formats/format_pcm.c (working copy) @@ -41 +41 @@ -#define BUF_SIZE 160 /* 160 bytes, and same number of samples */ +#define BUF_SIZE 80 /* 80 bytes, and same number of samples */ --- formats/format_wav.c (Asterisk 11.20) +++ formats/format_wav.c (working copy) @@ -43 +43 @@ -#define WAV_BUF_SIZE 320 +#define WAV_BUF_SIZE 160 --- formats/format_sln.c (Asterisk 11.20) +++ formats/format_sln.c (working copy) @@ -131 +131 @@ -static struct ast_frame *slinear_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 320, AST_FORMAT_SLINEAR);} +static struct ast_frame *slinear_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 160, AST_FORMAT_SLINEAR);} @@ -140 +140 @@ - .buf_size = 320 + AST_FRIENDLY_OFFSET, + .buf_size = 160 + AST_FRIENDLY_OFFSET, @@ -144 +144 @@ -static struct ast_frame *slinear12_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 480, AST_FORMAT_SLINEAR12);} +static struct ast_frame *slinear12_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 240, AST_FORMAT_SLINEAR12);} @@ -153 +153 @@ - .buf_size = 480 + AST_FRIENDLY_OFFSET, + .buf_size = 240 + AST_FRIENDLY_OFFSET, @@ -157 +157 @@ -static struct ast_frame *slinear16_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 640, AST_FORMAT_SLINEAR16);} +static struct ast_frame *slinear16_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 320, AST_FORMAT_SLINEAR16);} @@ -166 +166 @@ - .buf_size = 640 + AST_FRIENDLY_OFFSET, + .buf_size = 320 + AST_FRIENDLY_OFFSET, @@ -170 +170 @@ -static struct ast_frame *slinear24_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 960, AST_FORMAT_SLINEAR24);} +static struct ast_frame *slinear24_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 480, AST_FORMAT_SLINEAR24);} @@ -179 +179 @@ - .buf_size = 960 + AST_FRIENDLY_OFFSET, + .buf_size = 480 + AST_FRIENDLY_OFFSET, @@ -183 +183 @@ -static struct ast_frame *slinear32_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1280, AST_FORMAT_SLINEAR32);} +static struct ast_frame *slinear32_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 640, AST_FORMAT_SLINEAR32);} @@ -192 +192 @@ - .buf_size = 1280 + AST_FRIENDLY_OFFSET, + .buf_size = 640 + AST_FRIENDLY_OFFSET, @@ -196 +196 @@ -static struct ast_frame *slinear44_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1764, AST_FORMAT_SLINEAR44);} +static struct ast_frame *slinear44_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 882, AST_FORMAT_SLINEAR44);} @@ -205 +205 @@ - .buf_size = 1764 + AST_FRIENDLY_OFFSET, + .buf_size = 882 + AST_FRIENDLY_OFFSET, @@ -209 +209 @@ -static struct ast_frame *slinear48_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1920, AST_FORMAT_SLINEAR48);} +static struct ast_frame *slinear48_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 960, AST_FORMAT_SLINEAR48);} @@ -218 +218 @@ - .buf_size = 1920 + AST_FRIENDLY_OFFSET, + .buf_size = 960 + AST_FRIENDLY_OFFSET, @@ -222 +222 @@ -static struct ast_frame *slinear96_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 3840, AST_FORMAT_SLINEAR96);} +static struct ast_frame *slinear96_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1920, AST_FORMAT_SLINEAR96);} @@ -231 +231 @@ - .buf_size = 3840 + AST_FRIENDLY_OFFSET, + .buf_size = 1920 + AST_FRIENDLY_OFFSET, @@ -235 +235 @@ -static struct ast_frame *slinear192_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 7680, AST_FORMAT_SLINEAR192);} +static struct ast_frame *slinear192_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 3840, AST_FORMAT_SLINEAR192);} @@ -244 +244 @@ - .buf_size = 7680 + AST_FRIENDLY_OFFSET, + .buf_size = 3840 + AST_FRIENDLY_OFFSET,