[Speex-dev] About wideband encode

손승원
Fri, 10 Feb 2006 00:19:12 -0000

Hi, all.

I have two questions about wideband encoding.

>From "testenc_wb.c"...

1)
   tmp=8;
   speex_encoder_ctl(st, SPEEX_SET_QUALITY, &tmp);
   tmp=3;
   speex_encoder_ctl(st, SPEEX_SET_HIGH_MODE, &tmp);
   tmp=6;
   speex_encoder_ctl(st, SPEEX_SET_LOW_MODE, &tmp);

How to set high_mode and low_mode, if quality is set to '9'?
When I set quality '9' / high_mode '3' / low_mode '6',
encode as like quality is '8'.
And what does high/low mode value in encoding process?

2)
   callback.callback_id = SPEEX_INBAND_CHAR;
   callback.func = speex_std_char_handler;
   callback.data = stderr;
   speex_decoder_ctl(dec, SPEEX_SET_HANDLER, &callback);

   callback.callback_id = SPEEX_INBAND_MODE_REQUEST;
   callback.func = speex_std_mode_request_handler;
   callback.data = st;
   speex_decoder_ctl(dec, SPEEX_SET_HANDLER, &callback);

Are these codes essential for encoding?
I don't know role of above codes.



-------------- next part --------------
An HTML attachment was scrubbed...