Browse Source

cmDspKr.c: Removed declaration of unused variable in _cmDspNanMapRecv()

to eliminate compiler warning.
master
kevin 10 years ago
parent
commit
1e26484c74
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      dsp/cmDspKr.c

+ 5
- 5
dsp/cmDspKr.c View File

2383
 
2383
 
2384
 void _cmDspNanoMapPgm( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned pgm )
2384
 void _cmDspNanoMapPgm( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned pgm )
2385
 {
2385
 {
2386
-  cmDspNanoMap_t* p = (cmDspNanoMap_t*)inst;
2386
+  //cmDspNanoMap_t* p = (cmDspNanoMap_t*)inst;
2387
 
2387
 
2388
   unsigned i;
2388
   unsigned i;
2389
         
2389
         
2430
 
2430
 
2431
 cmDspRC_t _cmDspNanoMapRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t* evt )
2431
 cmDspRC_t _cmDspNanoMapRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_t* evt )
2432
 {
2432
 {
2433
-  cmDspNanoMap_t* p = (cmDspNanoMap_t*)inst;
2433
+  //cmDspNanoMap_t* p = (cmDspNanoMap_t*)inst;
2434
 
2434
 
2435
   switch( evt->dstVarId )
2435
   switch( evt->dstVarId )
2436
   {
2436
   {
3070
     return cmDspInstErr(ctx,&p->inst,kFileSysFailDspRC,"Sync-recd file name generation failed for dir='%s' and prefix='%s'.",cmStringNullGuard(dir),cmStringNullGuard(srFn));
3070
     return cmDspInstErr(ctx,&p->inst,kFileSysFailDspRC,"Sync-recd file name generation failed for dir='%s' and prefix='%s'.",cmStringNullGuard(dir),cmStringNullGuard(srFn));
3071
 
3071
 
3072
   unsigned bits = cmDspUInt(inst,kBitsSrId);
3072
   unsigned bits = cmDspUInt(inst,kBitsSrId);
3073
-  if( cmSyncRecdCreate(  ctx->cmCtx, &p->srH, p->srFn, p->aFn, cmDspSampleRate(ctx), p->chCnt, bits ) != kOkSrRC )
3073
+  if( cmSyncRecdCreate(  ctx->cmCtx, &p->srH, p->srFn, p->aFn, cmDspSampleRate(ctx), p->chCnt, bits ) != kOkSyRC )
3074
     return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd file create failed for '%s'.",p->srFn);
3074
     return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd file create failed for '%s'.",p->srFn);
3075
 
3075
 
3076
   p->smpIdx = 0;
3076
   p->smpIdx = 0;
3152
   }
3152
   }
3153
 
3153
 
3154
   if( n>0 && cmSyncRecdIsValid(p->srH ) )
3154
   if( n>0 && cmSyncRecdIsValid(p->srH ) )
3155
-    if( cmSyncRecdAudioWrite( p->srH, &ctx->ctx->iTimeStamp, p->smpIdx, x, p->chCnt, n ) != kOkSrRC )
3155
+    if( cmSyncRecdAudioWrite( p->srH, &ctx->ctx->iTimeStamp, p->smpIdx, x, p->chCnt, n ) != kOkSyRC )
3156
       return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd audio update failed.");
3156
       return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd audio update failed.");
3157
 
3157
 
3158
   p->smpIdx += n;
3158
   p->smpIdx += n;
3179
         //printf("%i %i\n",cmDspUInt(inst,kD1SrId),cmTimeElapsedMicros(&ts,&p->ats));
3179
         //printf("%i %i\n",cmDspUInt(inst,kD1SrId),cmTimeElapsedMicros(&ts,&p->ats));
3180
 
3180
 
3181
         if( cmSyncRecdIsValid(p->srH ) )
3181
         if( cmSyncRecdIsValid(p->srH ) )
3182
-          if( cmSyncRecdMidiWrite(p->srH, &ts, cmDspUInt(inst,kStatusSrId), cmDspUInt(inst,kD0SrId), cmDspUInt(inst,kD1SrId) ) != kOkSrRC )
3182
+          if( cmSyncRecdMidiWrite(p->srH, &ts, cmDspUInt(inst,kStatusSrId), cmDspUInt(inst,kD0SrId), cmDspUInt(inst,kD1SrId) ) != kOkSyRC )
3183
             return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd MIDI update failed.");
3183
             return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd MIDI update failed.");
3184
       }
3184
       }
3185
       break;
3185
       break;

Loading…
Cancel
Save