Skip to content
Snippets Groups Projects
Commit fd32fa8d authored by Rafaël Carré's avatar Rafaël Carré
Browse files

celt: simplify a bit

parent fceb08d7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment