SPEEX_GET_QUALITY was never implemented and was removed in current svn.
Jean-Marc
Le mardi 25 janvier 2005 ? 12:29 +0100, rhino64@freesurf.ch a ?crit
:> Hi All,
> Almost all my question is in the subject. I have written the
> following small program and I get an error message when I try to use
> SPEEX_GET_QUALITY. This functionality seems not to be used in speexenc.c
> or speexdec.c.
>
> I would appreciate any hints.
>
> best regards,
>
>
> Alain Aubord
>
> ---------------------------test.c---------------------------------------
> #include <stdio.h>
> #include <stdlib.h>
> #include <speex/speex.h>
>
> int main(int argc,char * args[]){
> SpeexBits bits;
> void *enc_state;
> int Quality=9,tmp;
>
> speex_bits_init(&bits);
> enc_state=speex_encoder_init(&speex_uwb_mode);
>
> speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&Quality);
> speex_encoder_ctl(enc_state,SPEEX_GET_QUALITY,&tmp);
>
> printf("Quality is %d\n",tmp);
> }
>
> --------------------------------Result of program-----------------------
> tsapi:audio 151> a.out
> warning: Unknown nb_ctl request: 5
> Quality is 0
>
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev@xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
--
Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
Universite de Sherbrooke