Bladeren bron

cmProc4.c : fixed call to cmAudioFileReadSample() in cmRecdPlayInsertRecord().

master
kevin 11 jaren geleden
bovenliggende
commit
f2d06b68bd
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2
    1
      cmProc4.c

+ 2
- 1
cmProc4.c Bestand weergeven

@@ -4383,9 +4383,10 @@ cmRC_t         cmRecdPlayInsertRecord(cmRecdPlay* p, unsigned labelSymId, const
4383 4383
       unsigned chIdx = 0;
4384 4384
       unsigned chCnt = cmMin(p->chCnt,afInfo.chCnt);
4385 4385
       unsigned actFrmCnt = 0;
4386
-      if( cmAudioFileReadSample(afH,afInfo.frameCnt,chIdx,chCnt,&p->frags[i].chArray, &actFrmCnt) != kOkAfRC )
4386
+      if( cmAudioFileReadSample(afH,afInfo.frameCnt,chIdx,chCnt,p->frags[i].chArray, &actFrmCnt) != kOkAfRC )
4387 4387
         return cmCtxRtCondition(&p->obj, cmSubSysFailRC, "Read failed on the audio file '%s'.",cmStringNullGuard(wavFn));
4388 4388
 
4389
+      return rc;
4389 4390
     }
4390 4391
 
4391 4392
     return  cmCtxRtCondition( &p->obj, cmInvalidArgRC, "The fragment label symbol id '%i' not found for 'begin record'.",labelSymId);    

Laden…
Annuleren
Opslaan