Fix the buffer_samples value. For signed linear, the number of samples needed

to fill the buffer is half the buffer size.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@97974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-01-10 23:10:00 +00:00
parent 45634bab41
commit 0a5bfb9eb8

View File

@@ -206,7 +206,7 @@ static struct ast_translator slin8_to_slin16 = {
.framein = slin8_to_slin16_framein,
.sample = slin8_to_slin16_sample,
.desc_size = sizeof(struct slin8_to_slin16_pvt),
.buffer_samples = OUTBUF_SIZE,
.buffer_samples = (OUTBUF_SIZE / sizeof(int16_t)),
.buf_size = OUTBUF_SIZE,
};