ref: 46f3700e55953c3c279ea5d94784ed063fab0466
parent: 6775de3eaedad9cff7ad0ba45fdc32236955a273
author: Jean-Marc Valin <[email protected]>
date: Sat Aug 2 04:16:58 EDT 2008
Fixed two issues pointed out by Greg
--- a/tools/celtclient.c
+++ b/tools/celtclient.c
@@ -121,7 +121,7 @@
/* Setup the encoder and decoder in wideband */
CELTEncoder *enc_state;
CELTDecoder *dec_state;
- CELTMode *mode = celt_mode_create(48000, 2, 256, 128, NULL);
+ CELTMode *mode = celt_mode_create(48000, 2, 256, NULL);
enc_state = celt_encoder_create(mode);
dec_state = celt_decoder_create(mode);
struct sched_param param;
@@ -183,6 +183,7 @@
{
JitterBufferPacket packet;
/* Get audio from the jitter buffer */
+ packet.data = msg;
jitter_buffer_get(jitter, &packet, FRAME_SIZE, NULL);
celt_decode(dec_state, packet.data, packet.len, pcm);
} else {