cwAudioDeviceFile.cpp : Comment out debugging code.

This commit is contained in:
kevin 2023-06-27 17:31:34 -04:00
parent c78f695c31
commit 0622345a8b

View File

@ -473,7 +473,8 @@ namespace cw
rc_t _write_cache_output( dev_t* d ) rc_t _write_cache_output( dev_t* d )
{ {
rc_t rc = kOkRC; rc_t rc = kOkRC;
//sample_t s;
assert( d->oCacheEnd != nullptr ); assert( d->oCacheEnd != nullptr );
if( d->oCacheEnd->frameIdx + d->framesPerCycle > d->oCacheEnd->frameN ) if( d->oCacheEnd->frameIdx + d->framesPerCycle > d->oCacheEnd->frameN )
@ -485,6 +486,10 @@ namespace cw
memcpy(d->oCacheEnd->buf + d->oCacheEnd->frameIdx * d->oChCnt, d->oPktAudioBuf, d->framesPerCycle * d->oChCnt * sizeof(sample_t)); memcpy(d->oCacheEnd->buf + d->oCacheEnd->frameIdx * d->oChCnt, d->oPktAudioBuf, d->framesPerCycle * d->oChCnt * sizeof(sample_t));
d->oCacheEnd->frameIdx += d->framesPerCycle; d->oCacheEnd->frameIdx += d->framesPerCycle;
//s = vop::sum(d->oPktAudioBuf,d->framesPerCycle * d->oChCnt);
//printf("w:%i %i %f\n",d->oCacheEnd->frameIdx,d->framesPerCycle * d->oChCnt,s);
errLabel: errLabel:
return rc; return rc;
} }