From 21537d53d894197bd01154d90e4e106ef145c9cf Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 18 Mar 2008 01:32:13 +0000 Subject: [PATCH] PLC add_to_history called before write_buffer: after PLC the plc buffer may modify received speech for a soft transition back from synthesized speech git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@807 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmPlayoutBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmPlayoutBuffer.cpp b/core/AmPlayoutBuffer.cpp index 3e58b0a1..50e0317b 100644 --- a/core/AmPlayoutBuffer.cpp +++ b/core/AmPlayoutBuffer.cpp @@ -98,10 +98,10 @@ void AmPlayoutBuffer::write(u_int32_t ref_ts, u_int32_t rtp_ts, direct_write_buffer(last_ts, (ShortSample*)tmp, PCM16_B2S(l_size)); } } - write_buffer(ref_ts, mapped_ts, buf, len); - m_plcbuffer->add_to_history(buf, PCM16_S2B(len)); + write_buffer(ref_ts, mapped_ts, buf, len); + // update last_ts to end of received packet // if not out-of-sequence if (ts_less()(last_ts, mapped_ts) || last_ts == mapped_ts)