MMCONECT.INT 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 MMConect;
  26. {$C FIXED PRELOAD PERMANENT}
  27. {$I COMPILER.INC}
  28. interface
  29. uses
  30. {$IFDEF WIN32}
  31. Windows,
  32. {$ELSE}
  33. WinTypes,
  34. WinProcs,
  35. {$ENDIF}
  36. SysUtils,
  37. Messages,
  38. Classes,
  39. Controls,
  40. Forms,
  41. DsgnIntf,
  42. MMSystem,
  43. MMObj,
  44. MMDSPObj,
  45. MMUtils,
  46. MMString,
  47. MMMulDiv,
  48. MMRegs,
  49. MMPCMSup,
  50. MMWaveIO,
  51. MMMeter,
  52. MMLevel,
  53. MMOscope,
  54. MMSpectr,
  55. MMSpGram,
  56. MMLight,
  57. MMACMSup;
  58. const
  59. { set this to true if you have problems with hints or flat buttons }
  60. ENTER_IDLE_MODE : Boolean = False;
  61. MAXSPEED = 5000;
  62. type
  63. TMMTriggerMode = (tmNone, tmUpFlank, tmDownFlank);
  64. EMMConnectorError = class(Exception);
  65. {-- TMMConnector ------------------------------------------------------}
  66. TMMConnector = class(TMMDSPComponent)
  67. public
  68. constructor Create(AOwner: TComponent); override;
  69. destructor Destroy; override;
  70. procedure Trigger; virtual;
  71. property RefreshCountLevel: Longint read FLevelRefresh write FLevelRefresh;
  72. property RefreshCountMeter: Longint read FMeterRefresh write FMeterRefresh;
  73. property RefreshCountOscope: Longint read FOscopeRefresh write FOscopeRefresh;
  74. property RefreshCountLight: Longint read FLightRefresh write FLightRefresh;
  75. property RefreshCountSpectrum: Longint read FSpectrumRefresh write FSpectrumRefresh;
  76. property RefreshCountSpectrogram: Longint read FSpectrogramRefresh write FSpectrogramRefresh;
  77. procedure GetPeak(var PeakL, PeakR: Smallint);
  78. published
  79. property OnTrigger: TNotifyEvent read FOnTrigger write FOnTrigger;
  80. property Enabled: Boolean read FEnabled write SetEnabled default True;
  81. property AutoConvert: Boolean read FAutoConvert write FAutoConvert default True;
  82. property AutoTrigger: Boolean read FAutoTrigger write SetAutoTrigger default True;
  83. property Synchronize: Boolean read FSynchronize write FSynchronize default True;
  84. property Speed: integer read FSpeed write SetSpeed default MAXSPEED;
  85. property TriggerMode: TMMTriggerMode read FTriggerMode write SetTriggerMode default tmNone;
  86. property TriggerLevel: integer read FTriggerLevel write SetTriggerLevel default 0;
  87. property RefreshOnStop: Boolean read FRefresh write FRefresh default True;
  88. property RealTime: Boolean read FRealTime write SetRealTime default True;
  89. property EnterIdle: Boolean read GetEnterIdle write SetEnterIdle;
  90. property Input;
  91. property Output;
  92. property Level1: TMMLevel index 0 read FLevel1 write SetLevel;
  93. property Level2: TMMLevel index 1 read FLevel2 write SetLevel;
  94. property Meter1: TMMMeter index 0 read FMeter1 write SetMeter;
  95. property Meter2: TMMMeter index 1 read FMeter2 write SetMeter;
  96. property Oscope1: TMMOscope index 0 read FOscope1 write SetOscope;
  97. property Oscope2: TMMOscope index 1 read FOscope2 write SetOscope;
  98. property Light1: TMMLight index 0 read FLight1 write SetLight;
  99. property Light2: TMMLight index 1 read FLight2 write SetLight;
  100. property Spectrum1: TMMSpectrum index 0 read FSpectrum1 write SetSpectrum;
  101. property Spectrum2: TMMSpectrum index 1 read FSpectrum2 write SetSpectrum;
  102. property Spectrum3: TMMSpectrum index 2 read FSpectrum3 write SetSpectrum;
  103. property Spectrum4: TMMSpectrum index 3 read FSpectrum4 write SetSpectrum;
  104. property Spectrogram1: TMMSpectrogram index 0 read FSpectrogram1 write SetSpectrogram;
  105. property Spectrogram2: TMMSpectrogram index 1 read FSpectrogram2 write SetSpectrogram;
  106. end;
  107. implementation