/*
 * eq_soft.h
 *
 *  Created on: 2024年3月8日
 *      Author: haobox
 */

#ifndef APP_EQ_SOFT_EQ_SOFT_H_
#define APP_EQ_SOFT_EQ_SOFT_H_

#include "platform.h"

#define PI 					(3.14159265)
#define TYPE_PEAK			(2)
#define TYPE_LOWSHELF		(1)
#define TYPE_HIGHSHELF		(3)
#define TYPE_LOWPASS		(4)
#define TYPE_HIGHPASS		(5)
#define TYPE_BANDPASS		(6)
#define TYPE_ALLPASS		(7)

void eq_soft_update_data_int(int* data, uint32_t len_in_frame, int* coef_array, int* status);
void eq_soft_update_data_q15_int(int16_t* data, uint32_t len_in_frame, int* coef_array, int* status);
void eq_soft_param_shift_by_fre_int(int* coef_array, uint16_t gain_raw, uint16_t fc, uint16_t q, uint8_t type, uint32_t samplerate);

#endif /* APP_EQ_SOFT_EQ_SOFT_H_ */
