From 35afc5f004c11ba2e79735d5cee7e9cff9f3593f Mon Sep 17 00:00:00 2001 From: kpl Date: Thu, 26 Sep 2013 08:56:14 -0700 Subject: [PATCH] cmDspKr.c : Updated AmSync output format. --- dsp/cmDspKr.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/dsp/cmDspKr.c b/dsp/cmDspKr.c index a5843bd..8fef5b2 100644 --- a/dsp/cmDspKr.c +++ b/dsp/cmDspKr.c @@ -2014,12 +2014,19 @@ cmDspRC_t _cmDspAmSyncRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t* switch(evt->dstVarId) { case kSelAmId: - for(i=0; iarrayCnt; ++i) { - const cmDspAmSyncEntry_t* r = p->array + i; - cmRptPrintf(ctx->rpt,"0x%x : %s %i %i - %s %i %i : %i\n", - r->state,r->afn,r->asmp,r->afi,r->mfn,r->mid,r->mfi,r->afi-r->mfi); - } + double srate = cmDspSysSampleRate(ctx->dspH); + int fpc = cmDspSamplesPerCycle(ctx); + + for(i=0; iarrayCnt; ++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; case kAFnAmId: