mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
- 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:
parent
45a1950e3a
commit
54b6100378
@ -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++);
|
||||
|
Loading…
Reference in New Issue
Block a user