MMDSPMTR.INT 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMDSPMtr;
  26. interface
  27. uses
  28. {$IFDEF WIN32}
  29. Windows,
  30. {$ELSE}
  31. WinTypes,
  32. WinProcs,
  33. {$ENDIF}
  34. SysUtils,
  35. Controls,
  36. Classes,
  37. Forms,
  38. MMSystem,
  39. MMObj,
  40. MMUtils,
  41. MMTimer;
  42. const
  43. INTERVAL = 100;
  44. type
  45. {-- TMMMDSPMeter ----------------------------------------------------------}
  46. TMMDSPMeter = class(TMMComponent)
  47. public
  48. constructor Create(aOwner: TComponent); override;
  49. destructor Destroy; override;
  50. procedure Init;
  51. procedure Done;
  52. procedure StartMeasurement;
  53. procedure StopMeasurement;
  54. property Value: integer read GetValue;
  55. end;
  56. procedure InitDSPMeter;
  57. procedure DoneDSPMeter;
  58. procedure StartDSPMeter;
  59. procedure StopDSPMeter;
  60. implementation