2
0
mirror of https://github.com/rehlds/revoice.git synced 2024-12-27 23:25:53 +03:00

Silk encoder: disable 100msec encoding buffer

This commit is contained in:
thecrock 2015-12-14 22:15:33 +04:00
parent 9ef0b50281
commit 28f77e9ff3

View File

@ -66,10 +66,12 @@ int VoiceEncoder_Silk::Compress(const char *pUncompressedIn, int nSamplesIn, cha
const int nSampleDataMinMS = 100;
const int nSamplesMin = inSampleRate * nSampleDataMinMS / 1000;
/*
if ((nSamplesIn + m_bufOverflowBytes.TellPut() / 2) < nSamplesMin && !bFinal) {
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);
return 0;
}
*/
if (m_bufOverflowBytes.TellPut()) {
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);