mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
i've tested, now you can too
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user