--- formats/format_g729.c (Asterisk 13.6) +++ formats/format_g729.c (working copy) @@ -46,2 +46,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 13.6) +++ formats/format_pcm.c (working copy) @@ -42 +42 @@ -#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 13.6) +++ formats/format_wav.c (working copy) @@ -46 +46 @@ -#define WAV_BUF_SIZE 320 +#define WAV_BUF_SIZE 160 --- formats/format_sln.c (Asterisk 13.6) +++ formats/format_sln.c (working copy) @@ -120 +120 @@ -static struct ast_frame *slinear_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 320);} +static struct ast_frame *slinear_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 160);} @@ -129 +129 @@ - .buf_size = 320 + AST_FRIENDLY_OFFSET, + .buf_size = 160 + AST_FRIENDLY_OFFSET, @@ -132 +132 @@ -static struct ast_frame *slinear12_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 480);} +static struct ast_frame *slinear12_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 240);} @@ -141 +141 @@ - .buf_size = 480 + AST_FRIENDLY_OFFSET, + .buf_size = 240 + AST_FRIENDLY_OFFSET, @@ -144 +144 @@ -static struct ast_frame *slinear16_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 640);} +static struct ast_frame *slinear16_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 320);} @@ -153 +153 @@ - .buf_size = 640 + AST_FRIENDLY_OFFSET, + .buf_size = 320 + AST_FRIENDLY_OFFSET, @@ -156 +156 @@ -static struct ast_frame *slinear24_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 960);} +static struct ast_frame *slinear24_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 480);} @@ -165 +165 @@ - .buf_size = 960 + AST_FRIENDLY_OFFSET, + .buf_size = 480 + AST_FRIENDLY_OFFSET, @@ -168 +168 @@ -static struct ast_frame *slinear32_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1280);} +static struct ast_frame *slinear32_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 640);} @@ -177 +177 @@ - .buf_size = 1280 + AST_FRIENDLY_OFFSET, + .buf_size = 640 + AST_FRIENDLY_OFFSET, @@ -180 +180 @@ -static struct ast_frame *slinear44_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1764);} +static struct ast_frame *slinear44_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 882);} @@ -189 +189 @@ - .buf_size = 1764 + AST_FRIENDLY_OFFSET, + .buf_size = 882 + AST_FRIENDLY_OFFSET, @@ -192 +192 @@ -static struct ast_frame *slinear48_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1920);} +static struct ast_frame *slinear48_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 960);} @@ -201 +201 @@ - .buf_size = 1920 + AST_FRIENDLY_OFFSET, + .buf_size = 960 + AST_FRIENDLY_OFFSET, @@ -204 +204 @@ -static struct ast_frame *slinear96_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 3840);} +static struct ast_frame *slinear96_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 1920);} @@ -213 +213 @@ - .buf_size = 3840 + AST_FRIENDLY_OFFSET, + .buf_size = 1920 + AST_FRIENDLY_OFFSET, @@ -216 +216 @@ -static struct ast_frame *slinear192_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 7680);} +static struct ast_frame *slinear192_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 3840);} @@ -225 +225 @@ - .buf_size = 7680 + AST_FRIENDLY_OFFSET, + .buf_size = 3840 + AST_FRIENDLY_OFFSET,