KT24-1110_65E-HA-651B/apps/soundbox/include/common/Resample_api.h
2024-11-10 18:44:17 +08:00

27 lines
678 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __RESAMPLE_API_H__
#define __RESAMPLE_API_H__
// #include "br18_dsp_Ecommon.h"
typedef struct _RS_IO_CONTEXT_ {
void *priv;
int(*output)(void *priv, void *data, int len);
} RS_IO_CONTEXT;
typedef struct _RS_PARA_STRUCT_ {
unsigned int new_insample;
unsigned int new_outsample;
int nch;
} RS_PARA_STRUCT;
typedef struct _RS_STUCT_API_ {
unsigned int(*need_buf)();
void (*open)(unsigned int *ptr, RS_PARA_STRUCT *rs_para);
void (*set_sr)(unsigned int *ptr, int newsrI);
int(*run)(unsigned int *ptr, short *inbuf, int len, short *obuf); //len是n个点返回n个点
} RS_STUCT_API;
RS_STUCT_API *get_rs16_context();
#endif