mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
celt: simplify a bit
This commit is contained in:
@ -45,14 +45,6 @@ class Celt : public sfl::AudioCodec
|
||||
_bitrate = 0;
|
||||
_hasDynamicPayload = true;
|
||||
|
||||
initCelt();
|
||||
}
|
||||
|
||||
Celt (const Celt&);
|
||||
Celt& operator= (const Celt&);
|
||||
|
||||
void initCelt() {
|
||||
|
||||
int error = 0;
|
||||
|
||||
_mode = celt_mode_create (_clockRate, _frameSize, &error);
|
||||
@ -111,15 +103,12 @@ class Celt : public sfl::AudioCodec
|
||||
|
||||
}
|
||||
|
||||
Celt (const Celt&);
|
||||
Celt& operator= (const Celt&);
|
||||
|
||||
~Celt() {
|
||||
terminateCelt();
|
||||
}
|
||||
|
||||
void terminateCelt() {
|
||||
|
||||
celt_encoder_destroy (_enc);
|
||||
celt_decoder_destroy (_dec);
|
||||
|
||||
celt_mode_destroy (_mode);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user