All pastes #191313 Raw Edit

Mine

public cpp v1 · immutable
·published 2006-10-04 21:07 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 input[MAX_FRAME_SIZE];spx_int32_t frame_size;bool noMoreFrames = false;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(!noMoreFrames){	...	speex_preprocess(preprocess, input_frame, NULL);	...}