Skip to content
Snippets Groups Projects
Commit 0a5bfb9e authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 45634bab
No related branches found
No related tags found
No related merge requests found
......@@ -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,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment