

#ifndef AUDIO_H
#define AUDIO_H

#include "ssc_defines.h"
#include "ssc_custom.h"

#include "rc_decode.h"
#include "ssc_macro.h"

#ifdef __cplusplus
extern "C" {
#endif

#define AUDIODecoder SSCCustomDecoder
#define AUDIOMode SSCCustomMode




//int ssc_decoder_init(AUDIODecoder *st, int sampling_rate,int channel);

#define SSC_CUSTOM_NOSTATIC static SSC_INLINE


static const unsigned char trim_icdf[11] = {126, 124, 119, 109, 87, 41, 19, 9, 4, 2, 0};
static const unsigned char spread_icdf[4] = {25, 23, 2, 0};



#define COMBFILTER_MAXPERIOD 1024
#define COMBFILTER_MINPERIOD 15


extern const signed char tf_select_table[8];
void comb_filter(int *y, short T0, short T1, int N,short g0, short g1,int overlap);



#ifdef __cplusplus
}
#endif

#endif 
