From fd61da603fd73767b2d2f43dc033dbeb20736faa Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 16 Jan 2014 20:17:55 -0800 Subject: [PATCH] cmProc4.c : cmRecdPlayInsertRecord() now sets frag.recdIdx field to the actual number of sample frames read rather than the number allocated. --- cmProc4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmProc4.c b/cmProc4.c index 2a139de..7c1365c 100644 --- a/cmProc4.c +++ b/cmProc4.c @@ -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; }