Skip to content
Snippets Groups Projects
Commit 547b5c7e authored by David Vossel's avatar David Vossel
Browse files

audio_audiohook_write_list() did not correctly update sample size after ast_translate.

audio_audiohook_write_list() did not take into account that the sample size may change after translation depending on if the original frame is is 8khz or 16khz.  the sample size is now updated after translating to reflect this possibility.  This caused the audio on the receiving end to sound terrible.  Thanks to jcolp and mmichelson for helping me work this out.

(issue AST-197)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@186379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 954237b2
No related branches found
No related tags found
No related merge requests found
...@@ -576,6 +576,7 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st ...@@ -576,6 +576,7 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st
} }
if (!(middle_frame = ast_translate(in_translate->trans_pvt, frame, 0))) if (!(middle_frame = ast_translate(in_translate->trans_pvt, frame, 0)))
return frame; return frame;
samples = middle_frame->samples;
} }
/* Queue up signed linear frame to each spy */ /* Queue up signed linear frame to each spy */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment