Kaynağa Gözat

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

master
kevin 11 yıl önce
ebeveyn
işleme
f2d06b68bd
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      cmProc4.c

+ 2
- 1
cmProc4.c Dosyayı Görüntüle

@@ -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);    

Loading…
İptal
Kaydet