Преглед изворни кода

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

to eliminate compiler warning.
master
kevin пре 10 година
родитељ
комит
1e26484c74
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5
    5
      dsp/cmDspKr.c

+ 5
- 5
dsp/cmDspKr.c Прегледај датотеку

@@ -2383,7 +2383,7 @@ cmDspRC_t _cmDspNanoMapSend( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned st, un
2383 2383
 
2384 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 2388
   unsigned i;
2389 2389
         
@@ -2430,7 +2430,7 @@ cmDspRC_t _cmDspNanoMapReset(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
2430 2430
 
2431 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 2435
   switch( evt->dstVarId )
2436 2436
   {
@@ -3070,7 +3070,7 @@ cmDspRC_t _cmDspSyncRecdCreateFile( cmDspCtx_t* ctx, cmDspInst_t* inst )
3070 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 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 3074
     return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd file create failed for '%s'.",p->srFn);
3075 3075
 
3076 3076
   p->smpIdx = 0;
@@ -3152,7 +3152,7 @@ cmDspRC_t _cmDspSyncRecdExec(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
3152 3152
   }
3153 3153
 
3154 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 3156
       return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd audio update failed.");
3157 3157
 
3158 3158
   p->smpIdx += n;
@@ -3179,7 +3179,7 @@ cmDspRC_t _cmDspSyncRecdRecv(cmDspCtx_t* ctx, cmDspInst_t* inst, const cmDspEvt_
3179 3179
         //printf("%i %i\n",cmDspUInt(inst,kD1SrId),cmTimeElapsedMicros(&ts,&p->ats));
3180 3180
 
3181 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 3183
             return cmDspInstErr(ctx,&p->inst,kSubSysFailDspRC,"Sync-recd MIDI update failed.");
3184 3184
       }
3185 3185
       break;

Loading…
Откажи
Сачувај