It returns the number of samples in buffer. Note that it will drop UDP packets that are out of order. It returns the size of the encoded packet. Enables VOX, or voice activated transmission. The other two variables, rate and noisethreshold, can be updated whenever you need to change them.
Sample rates are in samples per second.
Resamples inbuf to outbuf. Note that inlen may return less than the length of inbuf, so you may need to save several samples to add to the beginning of the next buffer. The valid range is 0.5f to 1.0f, but the recomended range is 0.8f to 0.95f. At 1.0f, some clipping might be experienced. Performs the AGC function on buffer.