mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 22:50:54 +02:00
Yet more style fixes.
This commit is contained in:
parent
fef469cca4
commit
26d507c39a
3 changed files with 12 additions and 11 deletions
|
@ -57,8 +57,9 @@ AthenaOpusDecoder::AthenaOpusDecoder(int sampleRate, int numChannels) {
|
|||
}
|
||||
|
||||
AthenaOpusDecoder::~AthenaOpusDecoder() {
|
||||
if (_decoder)
|
||||
if (_decoder) {
|
||||
opus_decoder_destroy(_decoder);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -160,12 +160,12 @@ int AthenaOpusEncoder::getMaxBandwidth() const {
|
|||
return returnValue;
|
||||
}
|
||||
|
||||
void AthenaOpusEncoder::setMaxBandwidth(int maxbw) {
|
||||
void AthenaOpusEncoder::setMaxBandwidth(int maxBandwidth) {
|
||||
assert(_encoder);
|
||||
int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_MAX_BANDWIDTH(maxbw));
|
||||
int errorCode = opus_encoder_ctl(_encoder, OPUS_SET_MAX_BANDWIDTH(maxBandwidth));
|
||||
|
||||
if (errorCode != OPUS_OK) {
|
||||
qCWarning(encoder) << "Error when setting max bandwidth to " << maxbw << ": " << errorToString(errorCode);
|
||||
qCWarning(encoder) << "Error when setting max bandwidth to " << maxBandwidth << ": " << errorToString(errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@
|
|||
|
||||
class AthenaOpusEncoder : public Encoder {
|
||||
public:
|
||||
const int DEFAULT_BITRATE = 128000;
|
||||
const int DEFAULT_COMPLEXITY = 10;
|
||||
const int DEFAULT_APPLICATION = OPUS_APPLICATION_VOIP;
|
||||
const int DEFAULT_SIGNAL = OPUS_AUTO;
|
||||
|
||||
|
||||
AthenaOpusEncoder(int sampleRate, int numChannels);
|
||||
~AthenaOpusEncoder() override;
|
||||
|
@ -66,6 +61,11 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
const int DEFAULT_BITRATE = 128000;
|
||||
const int DEFAULT_COMPLEXITY = 10;
|
||||
const int DEFAULT_APPLICATION = OPUS_APPLICATION_VOIP;
|
||||
const int DEFAULT_SIGNAL = OPUS_AUTO;
|
||||
|
||||
int _opusSampleRate = 0;
|
||||
int _opusChannels = 0;
|
||||
int _opusExpectedLoss = 0;
|
||||
|
|
Loading…
Reference in a new issue