- I noticed I got the c vs. fortran indexing wrong after explaining it ;-)

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@122 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Diane Bruce 2006-01-30 16:06:57 +00:00
parent 45a1950e3a
commit 54b6100378

View File

@ -228,11 +228,11 @@ oss_loop(int *iarg)
/* increment buffer pointers only if data available */
ia=*(data.iwrite);
ib=*(data.ibuf);
data.tbuf[ib++] = stime;
if(ib>=FRAMESPERBUFFER)
ib=0;
data.tbuf[ib-1] = stime; /* convert to c index to store */
if(ib>FRAMESPERBUFFER)
ib=1;
*(data.ibuf) = ib;
in = (int16_t *)rcv_buf; // XXX
in = (int16_t *)rcv_buf; /* XXX */
for(i=0; i<FRAMESPERBUFFER; i++) {
data.y1[ia] = (*in++);
data.y2[ia] = (*in++);