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

Delphi控件源码

开发平台:

Delphi

  1. {========================================================================}
  2. {=                (c) 1995-98 SwiftSoft Ronald Dittrich                 =}
  3. {========================================================================}
  4. {=                          All Rights Reserved                         =}
  5. {========================================================================}
  6. {=  D 01099 Dresden             = Fax.: +49 (0)351-8037944              =}
  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: 10.09.98 - 20:54:38 $                                        =}
  24. {========================================================================}
  25. unit MMWavReg;
  26. {$I COMPILER.INC}
  27. {$IFNDEF BCB}
  28.    {$IFNDEF DELPHI2}
  29.       {$IFNDEF DELPHI5}
  30.           {$DEFINE USEBLOB}
  31.       {$ENDIF}
  32.    {$ENDIF}
  33. {$ENDIF}
  34. Interface
  35. Procedure Register;
  36. Implementation
  37. {$IFDEF WIN32}
  38.    {$R MMWAVE.D32}
  39. {$ELSE}
  40.    {$R MMWAVE.D16}
  41. {$ENDIF}
  42. uses
  43.     Controls,
  44.     Classes,
  45. {$IFDEF DELPHI6}
  46.     DesignIntf,
  47.     DesignEditors,
  48. {$ELSE}
  49.     DsgnIntf,
  50. {$ENDIF}
  51.     SysUtils,
  52. {$IFNDEF DELPHI3}
  53.     FiltEdit,
  54. {$ENDIF}
  55.     MMDesign,
  56.     MMIde,
  57.     MMDSPProps,
  58.     MMDSPObj,
  59.     MMACMDlg,
  60.     MMWavPrp,
  61.     MMWave,
  62.     MMWInfo,
  63. {$IFNDEF BUILD_ACTIVEX}
  64.   {$IFDEF USEBLOB}
  65.     MMWBlob,
  66.   {$ENDIF}
  67. {$ENDIF}
  68.     MMCstDlg,
  69.     MMWavIn,
  70.     MMWavOut,
  71. {$IFDEF WIN32}
  72.     MMTrigg,
  73.     MMRingBf,
  74. {$ENDIF}
  75.     MMADCvt,
  76.     MMACMCvt,
  77.     MMDSPMtr,
  78.     MMEnvelp,
  79.     MMEnvDlg,
  80.     MMEnvPrp,
  81.     MMPLoad,
  82.     MMWPlay,
  83.     MMWRec;
  84. {=========================================================================}
  85. procedure Register;
  86. begin
  87.      RegisterComponents('MMWave', [TMMACM,
  88.                                    TMMWaveFile,
  89.                                    TMMMemoryWave,
  90.                                    {$IFNDEF BUILD_ACTIVEX}
  91.                                    {$IFDEF USEBLOB}
  92.                                    TMMWaveBlob,
  93.                                    {$ENDIF}
  94.                                    {$ENDIF}
  95.                                    TMMWaveInfoEditor,
  96.                                    TMMWaveOpenDialog,
  97.                                    TMMWaveSaveDialog,
  98.                                    TMMPictureOpenDialog,
  99.                                    TMMPictureSaveDialog,
  100.                                    TMMWavePlayer,
  101.                                    TMMWaveRecorder,
  102.                                    {$IFDEF WIN32}
  103.                                    TMMRingBuffer,
  104.                                    {$ENDIF}
  105.                                    TMMPreloader,
  106.                                    TMMWaveIn,
  107.                                    TMMWaveOut,
  108.                                    TMMDSPInterface,
  109.    TMMADPCMConverter,
  110.                                    {$IFDEF WIN32}
  111.                                    TMMPCMConverter,
  112.                                    TMMACMConverter,
  113.                                    TMMTrigger,
  114.                                    TMMDSPMeter,
  115.                                    {$ENDIF}
  116.                                    TMMEnvelope]);
  117. {$IFNDEF DELPHI3}
  118.      RegisterPropertyEditor(TypeInfo(String), TMMCustomOpenDialog, 'Filter',
  119.                             TFilterProperty);
  120. {$ENDIF}
  121.      RegisterPropertyEditor(TypeInfo(TMMWave), nil,'',TMMWaveProperty);
  122.      RegisterPropertyEditor(TypeInfo(TFileName),TMMWave,'FileName',TMMWaveFileProperty);
  123.      RegisterPropertyEditor(TypeInfo(TMMEnvelopePointList), TMMEnvelope, 'Points', TMMEnvelopePointProperty);
  124.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSPComponent,'Input',TMMDSPComponentInputEditor);
  125.      RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSPComponent,'Output',TMMDSPComponentOutputEditor);
  126.      RegisterComponentEditor(TMMEnvelope, TMMEnvelopeEditor);
  127.      RegisterComponentEditor(TMMCustomWaveFile, TMMWaveComponentEditor);
  128.      RegisterComponentEditor(TMMWavePlayer, TMMWaveComponentEditor);
  129.      RegisterComponentEditor(TMMWaveRecorder, TMMWaveComponentEditor);
  130.      RegisterPropertyEditor(TypeInfo(string), TMMWaveRecorder,'InputFormat',TMMWaveFormatProperty);
  131. end;
  132. initialization
  133.     RegisterProperty(ptOutput,'DSP',TMMDSPComponent,'Output',TMMDSPComponent,DSPOutConnectCheck);
  134.     RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input',TMMDSPComponent,DSPInpConnectCheck);
  135.     RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWaveIn,nil);
  136.     RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMCustomMemoryWave,nil);
  137.     RegisterProperty(ptInput,'Misc',TMMCustomWaveFile,'Source',TMMACM,nil);
  138.     RegisterProperty(ptInput,'Misc',TMMCustomWaveFile,'Source',TMMWaveInfoEditor,nil);
  139.     RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWavePlayer,nil);
  140.     RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWaveRecorder,nil);
  141. end.