All pastes #191325 Raw Edit

Untitled

public cpp v1 · immutable
·published 2006-10-04 21:15 UTC
rendered paste body
#include “speex/speex_preprocess.h”#define MAX_FRAME_SIZE 2000int denoise_enabled = 1;int agc_enabled = 1;SpeexPreprocessState *preprocess = NULL;Short inputFrame[MAX_FRAME_SIZE];spx_int32_t frame_size;bool moreFrames = true;preprocess = speex_preprocess_state_init(frame_size, rate);speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &denoise_enabled);speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &agc_enabled);while(moreFrames){	//get the next frame into inputFrame	speex_preprocess(preprocess, inputFrame, NULL);	//check to see if there are any more frames}