Commit 4eee901c authored by Stephane Letz's avatar Stephane Letz
Browse files

Correct JackNetInterface::AudioBufferFactory.

parent 457b2b75
......@@ -248,7 +248,8 @@ namespace Jack
return new NetOpusAudioBuffer(&fParams, nports, buffer, fParams.fKBps);
#endif
}
return NULL;
throw std::bad_alloc();
}
void JackNetInterface::SetRcvTimeOut()
......@@ -360,7 +361,7 @@ namespace Jack
return false;
}
// set the new rx buffer size
// set the new buffer size
if (SetNetBufferSize() == SOCKET_ERROR) {
jack_error("Can't set net buffer sizes : %s", StrError(NET_ERROR_CODE));
goto error;
......
......@@ -860,7 +860,7 @@ namespace Jack
memset(buffer, 0, fPeriodSize * sizeof(sample_t));
}
int res = opus_custom_encode_float(fOpusEncoder[port_index], buffer, fPeriodSize, fCompressedBuffer[port_index], fCompressedMaxSizeByte);
if (res <0 || res >= 65535) {
if (res < 0 || res >= 65535) {
fCompressedSizesByte[port_index] = 0;
} else {
fCompressedSizesByte[port_index] = res;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment