Merge branch 'master' into legacy

legacy
sh123 2022-07-28 21:15:31 +03:00
commit ef6caf679f
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -66,11 +66,11 @@ public class AudioFrameAggregator implements Protocol {
public void sendCompressedAudio(String src, String dst, int codec2Mode, byte[] frame) throws IOException {
if ( _outputBufferPos + frame.length >= _outputBufferSize) {
_childProtocol.sendCompressedAudio(src, dst, codec2Mode, Arrays.copyOf(_outputBuffer, _outputBufferPos));
_lastSrc = src;
_lastDst = dst;
_lastCodec2Mode = codec2Mode;
_outputBufferPos = 0;
}
_lastSrc = src;
_lastDst = dst;
_lastCodec2Mode = codec2Mode;
System.arraycopy(frame, 0, _outputBuffer, _outputBufferPos, frame.length);
_outputBufferPos += frame.length;
}