KT24-1110_65E-HA-651B/include_lib/media/VirtualBass_api.h

37 lines
883 B
C
Raw Normal View History

2024-11-10 10:44:17 +00:00
#ifndef VIRTUALBASS_API_H
#define VIRTUALBASS_API_H
#ifdef WIN32
#define AT_VBSS(x)
#define AT_VBSS_CODE
#define AT_VBSS_CONST
#define AT_VBSS_SPARSE_CODE
#define AT_VBSS_SPARSE_CONST
#else
#define AT_VBSS(x) __attribute((section(#x)))
#define AT_VBSS_CODE AT_VBSS(.vbss_code)
#define AT_VBSS_CONST AT_VBSS(.vbss_const)
#define AT_VBSS_SPARSE_CODE AT_VBSS(.vbss_sparse_code)
#define AT_VBSS_SPARSE_CONST AT_VBSS(.vbss_sparse_const)
#endif
typedef struct _VirtualBassParam {
int ratio;
int boost;
int fc;
int channel;
int SampleRate;
} VirtualBassParam;
int getVirtualBassBuf();
void VirtualBassInit(void *WorkBuf, VirtualBassParam *param);
void VirtualBassUpdate(void *WorkBuf, VirtualBassParam *param);
int VirtualBassRun(void *WorkBuf, int *tmpbuf, short *in, short *out, int per_channel_npoint);
#endif // !VIRTUALBASS_API_H