patch-src_delay_cpp 883 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-src_delay_cpp,v 1.1 2010/02/12 20:46:17 jakemsr Exp $
  2. --- src/delay.cpp.orig Wed Aug 7 14:37:02 2002
  3. +++ src/delay.cpp Fri Feb 5 06:26:56 2010
  4. @@ -283,15 +283,16 @@ initialise_delay() {
  5. = lDelayTypeIndex * DELAY_LENGTH_COUNT + lDelayLengthIndex;
  6. char acLabel[100];
  7. + int maxDelay = int(afMaximumDelays[lDelayLengthIndex] * 1000);
  8. sprintf(acLabel,
  9. - "%s_%gs",
  10. + "%s_%d",
  11. apcDelayTypeLabels[lDelayTypeIndex],
  12. - afMaximumDelays[lDelayLengthIndex]);
  13. + maxDelay);
  14. char acName[100];
  15. - sprintf(acName,
  16. - "%s Delay Line (Maximum Delay %gs)",
  17. + sprintf(acName,
  18. + "%s Delay Line (Maximum Delay %d ms)",
  19. apcDelayTypeNames[lDelayTypeIndex],
  20. - afMaximumDelays[lDelayLengthIndex]);
  21. + maxDelay);
  22. psDescriptor = new CMT_Descriptor
  23. (1053 + lPluginIndex,