i've tested, now you can too

This commit is contained in:
Brian West
2012-12-20 20:08:42 -06:00
parent d3fcfa8245
commit d67b96af8a
94 changed files with 25305 additions and 2005 deletions

View File

@@ -36,6 +36,8 @@
#define CODEC2_DEBUG
*/
#define CODEC2_SAMPLES_PER_FRAME 160
#ifdef CODEC2_DEBUG
#define codec2_assert(_x) switch_assert(_x)
#else
@@ -80,11 +82,11 @@ static switch_status_t switch_codec2_init(switch_codec_t *codec, switch_codec_fl
}
if (encoding) {
context->encoder = codec2_create();
context->encoder = codec2_create(CODEC2_MODE_2400);
}
if (decoding) {
context->decoder = codec2_create();
context->decoder = codec2_create(CODEC2_MODE_2400);
}
codec->private_info = context;