More style fixes for the Great and Powerful Thoys

This commit is contained in:
Marcus Llewellyn 2020-01-15 18:00:27 -06:00
parent f93e47cfcd
commit fef469cca4
4 changed files with 20 additions and 20 deletions

View file

@ -231,28 +231,28 @@ int AthenaOpusEncoder::getInbandFEC() const {
return fec; return fec;
} }
void AthenaOpusEncoder::setInbandFEC(int fec) { void AthenaOpusEncoder::setInbandFEC(int inBandFEC) {
assert(_encoder); assert(_encoder);
int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_INBAND_FEC(fec)); int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_INBAND_FEC(inBandFEC));
if (errorCode != OPUS_OK) { if (errorCode != OPUS_OK) {
qCWarning(encoder) << "Error when setting inband FEC to " << fec << ": " << errorToString(errorCode); qCWarning(encoder) << "Error when setting inband FEC to " << inBandFEC << ": " << errorToString(errorCode);
} }
} }
int AthenaOpusEncoder::getExpectedPacketLossPercent() const { int AthenaOpusEncoder::getExpectedPacketLossPercentage() const {
assert(_encoder); assert(_encoder);
int lossPercentage; int lossPercentage;
opus_encoder_ctl(_encoder, OPUS_GET_PACKET_LOSS_PERC(&lossPercentage)); opus_encoder_ctl(_encoder, OPUS_GET_PACKET_LOSS_PERC(&lossPercentage));
return lossPercentage; return lossPercentage;
} }
void AthenaOpusEncoder::setExpectedPacketLossPercentage(int percent) { void AthenaOpusEncoder::setExpectedPacketLossPercentage(int percentage) {
assert(_encoder); assert(_encoder);
int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_PACKET_LOSS_PERC(percent)); int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_PACKET_LOSS_PERC(percentage));
if (errorCode != OPUS_OK) { if (errorCode != OPUS_OK) {
qCWarning(encoder) << "Error when setting loss percent to " << percent << ": " << errorToString(errorCode); qCWarning(encoder) << "Error when setting loss percent to " << percentage << ": " << errorToString(errorCode);
} }
} }

View file

@ -38,27 +38,27 @@ public:
void setVBR(int vbr); void setVBR(int vbr);
int getVBRConstraint() const; int getVBRConstraint() const;
void setVBRConstraint(int vbr_const); void setVBRConstraint(int vbrConstraint);
int getMaxBandwidth() const; int getMaxBandwidth() const;
void setMaxBandwidth(int maxbw); void setMaxBandwidth(int maxBandwidth);
int getBandwidth() const; int getBandwidth() const;
void setBandwidth(int bw); void setBandwidth(int bandwidth);
int getSignal() const; int getSignal() const;
void setSignal(int signal); void setSignal(int signal);
int getApplication() const; int getApplication() const;
void setApplication(int app); void setApplication(int application);
int getLookahead() const; int getLookahead() const;
int getInbandFEC() const; int getInbandFEC() const;
void setInbandFEC(int fec); void setInbandFEC(int inBandFEC);
int getExpectedPacketLossPercent() const; int getExpectedPacketLossPercentage() const;
void setExpectedPacketLossPercentage(int percent); void setExpectedPacketLossPercentage(int percentage);
int getDTX() const; int getDTX() const;
void setDTX(int dtx); void setDTX(int dtx);