Lines Matching refs:ppcmring
353 LDACBT_PCM_RING_BUF *ppcmring; in ldacBT_encode() local
392 ppcmring = &hLdacBT->pcmring; in ldacBT_encode()
398 sz = ppcmring->nsmpl * wl * ch + nByteCpy; in ldacBT_encode()
400 copy_data_ldac( p_pcm, ppcmring->buf + ppcmring->wp, nByteCpy ); in ldacBT_encode()
401 ppcmring->wp += nByteCpy; in ldacBT_encode()
402 if( ppcmring->wp >= LDACBT_ENC_PCM_BUF_SZ ){ in ldacBT_encode()
403 ppcmring->wp = 0; in ldacBT_encode()
405 ppcmring->nsmpl += LDACBT_ENC_LSU; in ldacBT_encode()
414 if( ppcmring->nsmpl >= hLdacBT->frm_samples ) in ldacBT_encode()
527 if( ppcmring->nsmpl > 0 ){ in ldacBT_encode()
530 nsmpl_to_clr = hLdacBT->frm_samples - ppcmring->nsmpl; in ldacBT_encode()
533 pos = ppcmring->rp + ppcmring->nsmpl * wl * ch; in ldacBT_encode()
541 clear_data_ldac( ppcmring->buf + pos, clearBytes); in ldacBT_encode()
548 p_pcm_ring_r = ppcmring->buf + ppcmring->rp; in ldacBT_encode()
553 ppcmring->rp += hLdacBT->frm_samples * wl * ch; in ldacBT_encode()
554 ppcmring->nsmpl -= hLdacBT->frm_samples; in ldacBT_encode()
555 if( ppcmring->rp >= LDACBT_ENC_PCM_BUF_SZ ){ ppcmring->rp = 0; } in ldacBT_encode()
556 if( ppcmring->nsmpl < 0 ){ ppcmring->nsmpl = 0; } in ldacBT_encode()