Commit fd32fa8d authored by Rafaël Carré's avatar Rafaël Carré

celt: simplify a bit

parent fceb08d7
......@@ -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() {
terminateCelt();
}
void terminateCelt() {
Celt (const Celt&);
Celt& operator= (const Celt&);
~Celt() {
celt_encoder_destroy (_enc);
celt_decoder_destroy (_dec);
celt_mode_destroy (_mode);
}
......
Markdown is supported
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