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 ...@@ -45,14 +45,6 @@ class Celt : public sfl::AudioCodec
_bitrate = 0; _bitrate = 0;
_hasDynamicPayload = true; _hasDynamicPayload = true;
initCelt();
}
Celt (const Celt&);
Celt& operator= (const Celt&);
void initCelt() {
int error = 0; int error = 0;
_mode = celt_mode_create (_clockRate, _frameSize, &error); _mode = celt_mode_create (_clockRate, _frameSize, &error);
...@@ -111,15 +103,12 @@ class Celt : public sfl::AudioCodec ...@@ -111,15 +103,12 @@ class Celt : public sfl::AudioCodec
} }
~Celt() { Celt (const Celt&);
terminateCelt(); Celt& operator= (const Celt&);
}
void terminateCelt() {
~Celt() {
celt_encoder_destroy (_enc); celt_encoder_destroy (_enc);
celt_decoder_destroy (_dec); celt_decoder_destroy (_dec);
celt_mode_destroy (_mode); 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