Displaying 1 result from an estimated 1 matches for "pcodec".
Did you mean:
codec
2008 May 29
0
Again, teach me speex AEC please!
...10;
float rate = 8000;
typedef struct {
int type;
SpeexBits bits;
void* pSt;
SpeexPreprocessState* pPre;
// Perhaps the echo state here?
} Codec;
/**
* Creates a new encoder state
*/
JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encoder__(JNIEnv* env, jclass c)
{
Codec* pCodec = malloc(sizeof(Codec));
speex_bits_init(&pCodec->bits);
pCodec->type = TYPE_ENCODE;
pCodec->pSt = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));
pCodec->pPre = speex_preprocess_state_init(DSP_FRAME_SIZE, FRAME_RATE);
speex_encoder_ctl(pCodec->pSt,...