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
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 62b3f9a5aa
commit 21537d53d8

@ -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)

Loading…
Cancel
Save