From 0622345a8b064cff0660e036105b81a86d1a3b09 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 27 Jun 2023 17:31:34 -0400 Subject: [PATCH] cwAudioDeviceFile.cpp : Comment out debugging code. --- cwAudioDeviceFile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cwAudioDeviceFile.cpp b/cwAudioDeviceFile.cpp index 7f24671..78e0797 100644 --- a/cwAudioDeviceFile.cpp +++ b/cwAudioDeviceFile.cpp @@ -473,7 +473,8 @@ namespace cw rc_t _write_cache_output( dev_t* d ) { rc_t rc = kOkRC; - + //sample_t s; + assert( d->oCacheEnd != nullptr ); 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)); 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: return rc; }