|
@@ -780,8 +780,8 @@ int is_peak_at(double frq,int window_offset,float minamp,dataptr dz)
|
|
|
int cc, vc, searchtop, searchbot;
|
|
int cc, vc, searchtop, searchbot;
|
|
|
if(window_offset) { /* BAKTRAK ALONG BIGBUF, IF NESS */
|
|
if(window_offset) { /* BAKTRAK ALONG BIGBUF, IF NESS */
|
|
|
thisbuf = dz->flbufptr[0] - (window_offset * dz->wanted);
|
|
thisbuf = dz->flbufptr[0] - (window_offset * dz->wanted);
|
|
|
- /* if((int)thisbuf < 0 || thisbuf < dz->bigfbuf || thisbuf >= dz->flbufptr[1]) */
|
|
|
|
|
- /* return(FALSE); */
|
|
|
|
|
|
|
+ if((int)thisbuf < 0 || thisbuf < dz->bigfbuf || thisbuf >= dz->flbufptr[1])
|
|
|
|
|
+ return(FALSE);
|
|
|
} else
|
|
} else
|
|
|
thisbuf = dz->flbufptr[0];
|
|
thisbuf = dz->flbufptr[0];
|
|
|
cc = (int)((frq + dz->halfchwidth)/dz->chwidth); /* TRUNCATE */
|
|
cc = (int)((frq + dz->halfchwidth)/dz->chwidth); /* TRUNCATE */
|