fp=(structinterframe_params_t*)&circbuf_priv[chn].buf_ptr[X393_BUFFSUB32(p,8,chn)];// 32 bytes before the frame pointer, may roll-over to the end of ccam_dma_buf
if((orig!=SEEK_END)&&(file->f_pos==circbuf_priv[chn].buf_size))file->f_pos=0;// only for lseek(fd,0,SEEK_END) the result will be file size, others will roll to 0