~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to synti/simpledrums2/simpledrums.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.2.4)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: package-import@ubuntu.com-20120718160706-v4jjhddysh9i2bqr
Tags: upstream-2.0
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
                              printf("%x ", ev.data()[i]);
367
367
                        }
368
368
                  setController(ev.channel(), ev.dataA(), ev.dataB(), false);
369
 
                  return true;
 
369
                  //return true;  // ??
 
370
                  return false;   
370
371
            case MusECore::ME_NOTEON:
371
372
                  return playNote(ev.channel(), ev.dataA(), ev.dataB());
372
373
            case MusECore::ME_NOTEOFF:
663
664
    \return MidiPatch with patch info for host
664
665
 */
665
666
//---------------------------------------------------------
666
 
const MidiPatch* SimpleSynth::getPatchInfo(int index, const MidiPatch* patch) const
 
667
const MidiPatch* SimpleSynth::getPatchInfo(int /*index*/, const MidiPatch* /*patch*/) const
667
668
      {
668
669
      SS_TRACE_IN
669
 
      index = 0; patch = 0;
 
670
      //index = 0; patch = 0;
670
671
      SS_TRACE_OUT
671
672
      return 0;
672
673
      }
1432
1433
                  // arg2 :sfi.frames is of type sf_count_t (== 64 bit)  (long long)  
1433
1434
                  // this requires format %lld (twice 'l' in format string (arg1)
1434
1435
                  // old code//printf("Resampling from %ld frames to %ld frames - srcration: %lf\n", sfi.frames, smp->frames, srcratio);
1435
 
                  printf("Resampling from %lld frames to %ld frames - srcration: %lf\n", sfi.frames, smp->frames, srcratio);
 
1436
                  //printf("Resampling from %lld frames to %ld frames - srcration: %lf\n", sfi.frames, smp->frames, srcratio);
 
1437
                  // Changed by Tim. Just avoid the hassle for now. Need to determine 32/64 bit and provide two different printf lines.
 
1438
                  printf("Resampling to %ld frames - srcration: %lf\n", smp->frames, srcratio);
1436
1439
                  printf("Nr of new samples: %ld\n", smp->samples);
1437
1440
                  }
1438
1441
 
1767
1770
            QString errorString = "Error loading plugin \"" + plugin->label() + "\"";
1768
1771
            guiSendError(errorString.toLatin1().constData());
1769
1772
            }
 
1773
      SS_TRACE_OUT
1770
1774
      return success;
1771
 
      SS_TRACE_OUT
1772
1775
      }
1773
1776
 
1774
1777