MMFXReg.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:5k
源码类别:

Delphi控件源码

开发平台:

Delphi

  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 MMFXReg;
  26. {$I COMPILER.INC}
  27. {$DEFINE _PLUGIN}
  28. Interface
  29. Procedure Register;
  30. Implementation
  31. {$IFDEF WIN32}
  32.    {$R MMEFFECT.D32}
  33. {$ELSE}
  34.    {$R MMEFFECT.D16}
  35. {$ENDIF}
  36. uses
  37.     {$IFDEF DELPHI6}
  38.     DesignIntf,
  39.     DesignEditors,
  40.     {$ELSE}
  41.     DsgnIntf,
  42.     {$ENDIF}
  43.     Controls,
  44.     Classes,
  45.     SysUtils,
  46.     MMDesign,
  47.     MMIDE,
  48.     MMFXProp,
  49.     MMDSPObj,
  50.     MMFXGen,
  51.     MMWMixer,
  52.     MMSplitt,
  53.     MMReverb,
  54.     MMRvbDlg,
  55.     MMRvbPrp,
  56.     MMDelay,
  57.     MMPhase,
  58.     MMPhaseS,
  59.     MMFlange,
  60.     MMPitch,
  61.     MMSlow,
  62.     MMVolume
  63.     {$IFDEF _PLUGIN}
  64.     ,MMPLugIn
  65.     {$ENDIF}
  66.     ;
  67. {=========================================================================}
  68. procedure Register;
  69. begin
  70.      RegisterComponents('MMDSP',[TMMWaveMixer,
  71.                                  TMMOutputSplitter,
  72.                                  TMMGenerator,
  73.                                  TMMReverbDialog,
  74.                                  TMMReverb,
  75.                                  TMMDelay,
  76.                                  TMMPhaser,
  77.                                  TMMPhaseShift,
  78.                                  TMMFlanger,
  79.                                  TMMPitch,
  80.                                  TMMSimpleLowPass,
  81.                                  TMMVolume]);
  82.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMWaveMixer,'Input1',TMMDSPComponentInput1Editor);
  83.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMWaveMixer,'Input2',TMMDSPComponentInput2Editor);
  84.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMWaveMixer,'Input3',TMMDSPComponentInput3Editor);
  85.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMWaveMixer,'Input4',TMMDSPComponentInput4Editor);
  86.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMOutputSplitter,'Output1',TMMDSPComponentOutput1Editor);
  87.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMOutputSplitter,'Output2',TMMDSPComponentOutput2Editor);
  88.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMOutputSplitter,'Output3',TMMDSPComponentOutput3Editor);
  89.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMOutputSplitter,'Output4',TMMDSPComponentOutput4Editor);
  90.      RegisterPropertyEditor(TypeInfo(TMMEchoList), TMMReverb, 'Echos', TMMEchoProperty);
  91.      RegisterComponentEditor(TMMReverb, TMMReverbEditor);
  92.      {$IFDEF _PLUGIN}
  93.      MMPlugIn.Register;
  94.      {$ENDIF}
  95. end;
  96. initialization
  97.     RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input1',TMMWaveMixer,DSPInpConnectCheck);
  98.     RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input2',TMMWaveMixer,DSPInpConnectCheck);
  99.     RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input3',TMMWaveMixer,DSPInpConnectCheck);
  100.     RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input4',TMMWaveMixer,DSPInpConnectCheck);
  101.     RegisterProperty(ptOutput,'DSP',TMMOutputSplitter,'Output1',TMMDSPComponent,DSPOutConnectCheck);
  102.     RegisterProperty(ptOutput,'DSP',TMMOutputSplitter,'Output2',TMMDSPComponent,DSPOutConnectCheck);
  103.     RegisterProperty(ptOutput,'DSP',TMMOutputSplitter,'Output3',TMMDSPComponent,DSPOutConnectCheck);
  104.     RegisterProperty(ptOutput,'DSP',TMMOutputSplitter,'Output4',TMMDSPComponent,DSPOutConnectCheck);
  105. end.