[asterisk-commits] dvossel: trunk r186379 - /trunk/main/audiohook.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 3 11:29:57 CDT 2009
Author: dvossel
Date: Fri Apr 3 11:29:47 2009
New Revision: 186379
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=186379
Log:
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.
Modified:
trunk/main/audiohook.c
Modified: trunk/main/audiohook.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/audiohook.c?view=diff&rev=186379&r1=186378&r2=186379
==============================================================================
--- trunk/main/audiohook.c (original)
+++ trunk/main/audiohook.c Fri Apr 3 11:29:47 2009
@@ -576,6 +576,7 @@
}
if (!(middle_frame = ast_translate(in_translate->trans_pvt, frame, 0)))
return frame;
+ samples = middle_frame->samples;
}
/* Queue up signed linear frame to each spy */
More information about the asterisk-commits
mailing list