cmProc4.c : cmRecdPlayInsertRecord() now sets frag.recdIdx field to the actual number of sample

frames read rather than the number allocated.
This commit is contained in:
kevin 2014-01-16 20:17:55 -08:00
parent f2d06b68bd
commit fd61da603f

View File

@ -4386,6 +4386,8 @@ cmRC_t cmRecdPlayInsertRecord(cmRecdPlay* p, unsigned labelSymId, const
if( cmAudioFileReadSample(afH,afInfo.frameCnt,chIdx,chCnt,p->frags[i].chArray, &actFrmCnt) != kOkAfRC )
return cmCtxRtCondition(&p->obj, cmSubSysFailRC, "Read failed on the audio file '%s'.",cmStringNullGuard(wavFn));
p->frags[i].recdIdx = actFrmCnt;
return rc;
}