Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan de Konink <stefan@konink.de>2010-01-08 05:27:42 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2010-01-08 05:27:42 +0300
commit7f1822961de6af9a974cd07cab4de6b86a60b574 (patch)
tree4cfff9b1ea9eb38dc3fde31a559d47b5c83cea3c
parent74128befe450d0967a6c3e411424e3da5d7fc74d (diff)
Updates celtclient to the new API.
-rw-r--r--tools/celtclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/celtclient.c b/tools/celtclient.c
index 879bcec..445f8d1 100644
--- a/tools/celtclient.c
+++ b/tools/celtclient.c
@@ -133,9 +133,9 @@ int main(int argc, char *argv[])
/* Setup the encoder and decoder in wideband */
CELTEncoder *enc_state;
CELTDecoder *dec_state;
- CELTMode *mode = celt_mode_create(SAMPLING_RATE, CHANNELS, FRAME_SIZE, NULL);
- enc_state = celt_encoder_create(mode);
- dec_state = celt_decoder_create(mode);
+ CELTMode *mode = celt_mode_create(SAMPLING_RATE, FRAME_SIZE, NULL);
+ enc_state = celt_encoder_create(mode, CHANNELS, NULL);
+ dec_state = celt_decoder_create(mode, CHANNELS, NULL);
struct sched_param param;
/*param.sched_priority = 40; */
param.sched_priority = sched_get_priority_min(SCHED_FIFO);