#define ONE_PCM_SAMPLE_CNT 64
short* ReadPCM(char* szName,int* nCnt);
bool WritePCM(char* szName,short* pData,int nCnt);
int main(int argc, char *argv[])
{
if (argc != 3)
{
printf(“\nUsage: Input.pcm Output.pcm\n”);
return 0;
}
int nCnt;
static short signalIsChirp = 0;
short* pInPCM = ReadPCM(argv[1], &nCnt);
short* pOutPCM = new short[nCnt];
FILE *fp_sig_test = fopen(argv[2], "wb");
Status err;
Pointer pObj = Null;
UInt32 nObjSize;// = 32768;
err = NR_Create(pObj, &nObjSize);
assert(err == NR_CalcSize);
pObj = (Pointer)(char*)malloc(nObjSize);
err = NR_Create(pObj, &nObjSize);
assert(err == NR_OK);
for (int i = 0; i < nCnt - ONE_PCM_SAMPLE_CNT - 22; i += ONE_PCM_SAMPLE_CNT)