The libspeex API reference guide says that a call (any call?) to speex_encoder_ctl should return 0 in the case of silence (and 1 otherwise) but every time I call it I get a return value of 0, regardless of whether there's silence or not.
I'm currently trying to doing a:
CODE
int dtx_transmit = speex_encoder_ctl(tmp->speex, SPEEX_GET_FRAME_SIZE, &tmp->framesize);
After every call to:
CODE
speex_encode(tmp->speex, fbuf, &tmp->bits);
Has anyone been able to determine silence status using speex_encoder_ctl? Please let me know if I'm using it incorrectly.
Thanks,
James
