Quellcode durchsuchen

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

frames read rather than the number allocated.
master
kevin vor 10 Jahren
Ursprung
Commit
fd61da603f
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      cmProc4.c

+ 2
- 0
cmProc4.c Datei anzeigen

@@ -4386,6 +4386,8 @@ cmRC_t         cmRecdPlayInsertRecord(cmRecdPlay* p, unsigned labelSymId, const
4386 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
+      p->frags[i].recdIdx  = actFrmCnt;
4390
+
4389 4391
       return rc;
4390 4392
     }
4391 4393
 

Laden…
Abbrechen
Speichern