在网上找了一份ADI发布的音频处理算法库,想试一下基本的延时算法(库为BasicDelay.dlb,还有一个头文件BasicDelay.h)按照使用说明:
五、应用举例
首先将BasicDelay.dlb, BasicDelay.h两个文件拷贝到自己的工程目录下,然后将它们添加到工程中;然后在LDF文件中给数据段BDelay_dmda、程序段BDelay_pmco分配空间,接下来再写相关代码。
#include "BasicDelay.h"
#define NUM_SAMPLES 512 //输入数据块长度
/*************************************************************************
* 调用BasicDelay.dlb库函数需定义的参数
*************************************************************************/
// 延时的宏定义
#define DLine 4000 // Total Delay = DLine/fs 秒
// 定义两个声道的延时缓冲区大小
#define BufLengthL DLine
#define BufLengthR DLine
// 两个声道的延时缓冲区
#pragma section ("BDelay_dmda")
int DelayBufL[BufLengthL + 1];
#pragma section ("BDelay_dmda")
int DelayBufR[BufLengthR + 1];
出现了以下错误:
[Warning li2060] The following input section(s) that contain program code
and/or data have not been placed into the executable for processor 'P0'
as there are no relevant commands specified in the LDF:
.\Debug\process_audio.doj(BDelay_dmda)
libc.dlb[set_c.doj](seg_ctdml)
.\BasicDelay.dlb[BasicDelay.doj](BDelay_dmda)
.\BasicDelay.dlb[BasicDelay.doj](BDelay_pmco)
[Error li1060] The following symbols are referenced, but not mapped:
'_DelayBufL' referenced from .\Debug\process_audio.doj(seg_swco)
'_DelayBufR' referenced from .\Debug\process_audio.doj(seg_swco)
'_BasicDelay' referenced from .\Debug\process_audio.doj(seg_swco)
'_InitDelay' referenced from .\Debug\process_audio.doj(seg_swco)
不了解LDF,求大神帮助!!