From f2d06b68bd2e3128648f0027d055f707eafe652a Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 16 Jan 2014 17:12:04 -0800 Subject: [PATCH] cmProc4.c : fixed call to cmAudioFileReadSample() in cmRecdPlayInsertRecord(). --- cmProc4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmProc4.c b/cmProc4.c index 475c79e..2a139de 100644 --- a/cmProc4.c +++ b/cmProc4.c @@ -4383,9 +4383,10 @@ cmRC_t cmRecdPlayInsertRecord(cmRecdPlay* p, unsigned labelSymId, const unsigned chIdx = 0; unsigned chCnt = cmMin(p->chCnt,afInfo.chCnt); unsigned actFrmCnt = 0; - if( cmAudioFileReadSample(afH,afInfo.frameCnt,chIdx,chCnt,&p->frags[i].chArray, &actFrmCnt) != kOkAfRC ) + 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)); + return rc; } return cmCtxRtCondition( &p->obj, cmInvalidArgRC, "The fragment label symbol id '%i' not found for 'begin record'.",labelSymId);