shithub: opus

Download patch

ref: 7f1822961de6af9a974cd07cab4de6b86a60b574
parent: 74128befe450d0967a6c3e411424e3da5d7fc74d
author: Stefan de Konink <[email protected]>
date: Thu Jan 7 16:27:42 EST 2010

Updates celtclient to the new API.

--- a/tools/celtclient.c
+++ b/tools/celtclient.c
@@ -133,9 +133,9 @@
    /* 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);