[Speex-dev] Is SPEEX_GET_QUALITY implemented ?

rhino64 at freesurf.ch rhino64 at freesurf.ch
Tue Jan 25 03:29:10 PST 2005


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




More information about the Speex-dev mailing list