cmDspKr.c : Updated AmSync output format.
This commit is contained in:
parent
ffde60139a
commit
35afc5f004
@ -2014,11 +2014,18 @@ cmDspRC_t _cmDspAmSyncRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t*
|
|||||||
switch(evt->dstVarId)
|
switch(evt->dstVarId)
|
||||||
{
|
{
|
||||||
case kSelAmId:
|
case kSelAmId:
|
||||||
for(i=0; i<p->arrayCnt; ++i)
|
|
||||||
{
|
{
|
||||||
const cmDspAmSyncEntry_t* r = p->array + i;
|
double srate = cmDspSysSampleRate(ctx->dspH);
|
||||||
cmRptPrintf(ctx->rpt,"0x%x : %s %i %i - %s %i %i : %i\n",
|
int fpc = cmDspSamplesPerCycle(ctx);
|
||||||
r->state,r->afn,r->asmp,r->afi,r->mfn,r->mid,r->mfi,r->afi-r->mfi);
|
|
||||||
|
for(i=0; i<p->arrayCnt; ++i)
|
||||||
|
{
|
||||||
|
const cmDspAmSyncEntry_t* r = p->array + i;
|
||||||
|
|
||||||
|
int dframes = r->mfi-r->afi;
|
||||||
|
cmRptPrintf(ctx->rpt,"0x%x : %s %i %i - %s %i %i : frm:%i smp:%i sec:%f\n",
|
||||||
|
r->state,r->afn,r->asmp,r->afi,r->mfn,r->mid,r->mfi,dframes,dframes*fpc,dframes*fpc/srate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user