SNESverb.h 646 Bytes

#ifndef __SNESVERB_H__
#define __SNESVERB_H__

#include <stdio.h>

#define NUM_OF_DELAY_SECTS 2
#define NUM_OF_LP_SECTS 2
#define NUM_OF_SECTS NUM_OF_DELAY_SECTS + NUM_OF_LP_SECTS

#define SAMPLE_RATE 44100
#define SAMPLES_PER_MILLISEC SAMPLE_RATE/1000
#define ms *SAMPLES_PER_MILLISEC
#define BUFF_SIZE 512

const struct {int length; float coef; float lpcoef;
	  } SNES_REVERB_PARMS[ NUM_OF_SECTS ] = {
			{  9.60 ms, 0.750, .9 },	/* left delay section */
			{ 10.82 ms, 0.666, .9 } };	/* right delay section */


/******* exported prototypes *********/
int do_reverb(FILE *in_file, FILE *out_file, float *wet, float *dry, int stereo);

#endif