cmDspKr.c : cmDspRecdPlayExec() now checks for disconnected inputs and outputs.
This commit is contained in:
parent
7d0888f97d
commit
18a21d5e96
@ -2714,11 +2714,21 @@ cmDspRC_t _cmDspRecdPlayExec(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
|
||||
unsigned actChCnt = 0;
|
||||
|
||||
for(i=0; i<p->chCnt; ++i)
|
||||
{
|
||||
if( cmDspIsAudioInputConnected(ctx,inst,kInAudioBasePrId+i) == false )
|
||||
{
|
||||
x[i] = NULL;
|
||||
y[i] = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( i==0 )
|
||||
n = cmDspAudioBufSmpCount(ctx,inst,kInAudioBasePrId+i,0);
|
||||
else
|
||||
{ assert( n == cmDspAudioBufSmpCount(ctx,inst,kInAudioBasePrId+i,0)); }
|
||||
{
|
||||
|
||||
assert( n == cmDspAudioBufSmpCount(ctx,inst,kInAudioBasePrId+i,0));
|
||||
}
|
||||
|
||||
x[i] = cmDspAudioBuf(ctx,inst,kInAudioBasePrId+i,0);
|
||||
|
||||
@ -2737,6 +2747,7 @@ cmDspRC_t _cmDspRecdPlayExec(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cmRecdPlayExec(p->rcdply,x,y,actChCnt,n);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user