소스 검색

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

frames read rather than the number allocated.
master
kevin 10 년 전
부모
커밋
fd61da603f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      cmProc4.c

+ 2
- 0
cmProc4.c 파일 보기

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
         return cmCtxRtCondition(&p->obj, cmSubSysFailRC, "Read failed on the audio file '%s'.",cmStringNullGuard(wavFn));
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
       return rc;
4391
       return rc;
4390
     }
4392
     }
4391
 
4393
 

Loading…
취소
저장