diff --git a/start_oss.c b/start_oss.c index 282e16a44..67829c0e2 100644 --- a/start_oss.c +++ b/start_oss.c @@ -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