fix for Opus
This commit is contained in:
parent
c1a801eaa5
commit
921e519555
|
@ -135,11 +135,6 @@ OpusLibEncoder :: init ( unsigned int outMaxBitrate )
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int bufferSize = (getInBitsPerSample()/8) * getInChannel() * 480;
|
|
||||||
internalBuffer = new unsigned char[bufferSize];
|
|
||||||
internalBufferLength = 0;
|
|
||||||
memset( internalBuffer, 0, bufferSize);
|
|
||||||
|
|
||||||
encoderOpen = false;
|
encoderOpen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,6 +158,11 @@ OpusLibEncoder :: open ( void )
|
||||||
"opus lib opening underlying sink error");
|
"opus lib opening underlying sink error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int bufferSize = (getInBitsPerSample()/8) * getInChannel() * 480;
|
||||||
|
internalBuffer = new unsigned char[bufferSize];
|
||||||
|
internalBufferLength = 0;
|
||||||
|
memset( internalBuffer, 0, bufferSize);
|
||||||
|
|
||||||
int err;
|
int err;
|
||||||
opusEncoder = opus_encoder_create( getOutSampleRate(),
|
opusEncoder = opus_encoder_create( getOutSampleRate(),
|
||||||
getInChannel(),
|
getInChannel(),
|
||||||
|
|
Loading…
Reference in New Issue