Hi, So I see in: split_cb_shape_sign_unquant this call is going wrong: ind[i] = speex_bits_unpack_unsigned(bits, params->shape_bits); ind as a way negative number- basically this should return bet. 0-255 or somesuch right? So seems like I need to reset speex at this point if if (ind[i] > 256) like the note says. So I guess my question is is this range still valid? also what is the most innocuous value for ind[i] - 0? Thanks! Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070226/c023ff31/attachment.htm
Hi Jean-Marc, list, I'm currently trying the svn's AGC. I'm not getting expected results while using it. I currently only tried to enable it and keep the agc level to 8000 and the other default parameters. I wish to get some information about the new other parameters and which value should be tried for MAX_GAIN and INCREMENT stuff... I also wish to know more about AGC: is it usually used on microphone or on incoming stream? or both? Aymeric MOIZARD / ANTISIP amsip - http://www.antisip.com osip2 - http://www.osip.org eXosip2 - http://savannah.nongnu.org/projects/exosip/
> split_cb_shape_sign_unquant > this call is going wrong: > ind[i] = speex_bits_unpack_unsigned(bits, params->shape_bits); > > ind as a way negative number- basically this should return bet. > 0-255 or somesuch right?I really don't see how this could be happening. Have a look at speex_bits_unpack_unsigned(). Basically, it has to return an integer between 0 and 2^params->shape_bits - 1. Unless you can track down the exact error in Speex, I would tend to suspect a memory corruption in your application that causes problems in a different place.> So seems like I need to reset speex at this point if > if (ind[i] > 256) like the note says. So I guess my question is > is this range still valid? > > also what is the most innocuous value for ind[i] - 0?See above, but I would recommend against that kind of hack. Jean-Marc
> I'm currently trying the svn's AGC. I'm not getting expected > results while using it. I currently only tried to enable it > and keep the agc level to 8000 and the other default parameters.I recently rewrote it, so a few glitches are expected.> I wish to get some information about the new other parameters > and which value should be tried for MAX_GAIN and INCREMENT stuff...Start from the defaults and tweek only as necessary. All these parameters are about preventing the gain from changing too much.> I also wish to know more about AGC: is it usually used on microphone > or on incoming stream? or both?You probably want it on the microphone side, but *AFTER* the echo canceller and the noise suppressor (the preprocessor does the ordering correctly if you enable both). Having it on the receive side after the decoder also could make sense if the sender is not using an AGC. Jean-Marc