pcm_Resample.h 1.4 KB
/**
 ********************************************************************
 * @file   pcm_Resample.h
 *         AudioDeal的头文件
 *
 *********************************************************************
 */

/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef PCM_REAMPLE_H
#define PCM_REAMPLE_H

/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#include "AudioDeal/FF_Statement.h"
#include "AudioDeal/AudioDeal.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/

/* Exported types ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/
T_JZsdkReturnCode FF_Resample_Init(struct AudioDealInfo *AD_Info,
    unsigned int in_sampleRate, AVChannelLayout in_ch_layout, enum AVSampleFormat in_format);
T_JZsdkReturnCode FF_Resample_Reset(struct AudioDealInfo *AD_Info,
    unsigned int in_sampleRate, AVChannelLayout in_ch_layout, enum AVSampleFormat in_format);

void *FF_Resample_Send_And_Get_ResampleData(struct AudioDealInfo *AD_Info, unsigned char **src, int nb_samples, int *out_nb_samples);


T_JZsdkReturnCode FF_Resample_freeReasmpleData(void *dst);


#ifdef __cplusplus
}
#endif

#endif