mirror of
https://github.com/rehlds/revoice.git
synced 2024-12-28 15:45:52 +03:00
Silk encoder: disable 100msec encoding buffer
This commit is contained in:
parent
9ef0b50281
commit
28f77e9ff3
@ -66,10 +66,12 @@ int VoiceEncoder_Silk::Compress(const char *pUncompressedIn, int nSamplesIn, cha
|
|||||||
const int nSampleDataMinMS = 100;
|
const int nSampleDataMinMS = 100;
|
||||||
const int nSamplesMin = inSampleRate * nSampleDataMinMS / 1000;
|
const int nSamplesMin = inSampleRate * nSampleDataMinMS / 1000;
|
||||||
|
|
||||||
|
/*
|
||||||
if ((nSamplesIn + m_bufOverflowBytes.TellPut() / 2) < nSamplesMin && !bFinal) {
|
if ((nSamplesIn + m_bufOverflowBytes.TellPut() / 2) < nSamplesMin && !bFinal) {
|
||||||
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);
|
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (m_bufOverflowBytes.TellPut()) {
|
if (m_bufOverflowBytes.TellPut()) {
|
||||||
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);
|
m_bufOverflowBytes.Put(pUncompressedIn, 2 * nSamplesIn);
|
||||||
|
Loading…
Reference in New Issue
Block a user