MMDSReg.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             = 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: 11.08.98 - 14:55:07 $                                        =}
  24. {========================================================================}
  25. unit MMDSReg;
  26. {$I COMPILER.INC}
  27. Interface
  28. Procedure Register;
  29. Implementation
  30. {$R MMDSOUND.D32}
  31. uses
  32.     {$IFDEF DELPHI6}
  33.     DesignIntf,
  34.     DesignEditors,
  35.     {$ELSE}
  36.     DsgnIntf,
  37.     {$ENDIF}
  38.     Controls,
  39.     Classes,
  40.     SysUtils,
  41.     MMObj,
  42.     MMDSPObj,
  43.     MMDesign,
  44.     MMIDE,
  45.     MMDSProps,
  46.     MMDSWOut,
  47.     MMDSMix,
  48.     MMDSEdtr,
  49.     MMDSWvIn,
  50.     MMDSCptr,
  51.     {$IFNDEF DELPHI2}
  52.     {$IFNDEF BCB}
  53.     MMDSMidi,
  54.     {$ENDIF}
  55.     {$ENDIF}
  56.     MMDSCon,
  57.     MMLevel
  58.     {$IFNDEF LEVEL_ONLY}
  59.     ,MMMeter
  60.     {$ENDIF}
  61.     ;
  62. {=========================================================================}
  63. procedure Register;
  64. begin
  65.     RegisterComponents('MMDSound', [TMMDSWaveOut,
  66.                                     TMMDSWaveIn,
  67.                                     TMMDSWaveMixer,
  68.                                     TMMDSMixChannel,
  69.                                     {$IFNDEF DELPHI2}
  70.                                     {$IFNDEF BCB}
  71.                                     TMMDSMidiChannel,
  72.                                     {$ENDIF}
  73.                                     {$ENDIF}
  74.                                     TMMDSEditor,
  75.                                     TMMDSCapture,
  76.                                     TMMDSCaptureChannel,
  77.                                     TMMDSChannelConnector]);
  78.     RegisterComponentEditor(TMMDSWaveMixer, TMMDSWaveMixerEditor);
  79.     RegisterComponentEditor(TMMDSMixChannel, TMMDSMixChannelEditor);
  80.     RegisterComponentEditor(TMMDSCaptureChannel, TMMDSWaveFormatComponentEditor);
  81.     RegisterPropertyEditor(TypeInfo(TMMComponent),TMMDSEditor,'EditObject',TMMDSEditorEditObjectProperty);
  82.     RegisterPropertyEditor(TypeInfo(TMMDS3DControl), nil, 'Sound3D', TMM3DSoundProperty);
  83.     RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSChannelConnector,'Channel',TMMDSChannelConnectorEditor);
  84.     RegisterPropertyEditor(TypeInfo(string), TMMDSCaptureChannel,'InputFormat',TMMDSWaveFormatProperty);
  85. end;
  86. initialization
  87.     RegisterProperty(ptOutput,'DirectSound',TMMDSMixChannel,'Mixer',TMMDSWaveMixer,nil);
  88.     {$IFNDEF DELPHI2}
  89.     {$IFNDEF BCB}
  90.     RegisterProperty(ptOutput,'DirectSound',TMMDSMidiChannel,'Mixer',TMMDSWaveMixer,nil);
  91.     {$ENDIF}
  92.     {$ENDIF}
  93.     RegisterProperty(ptInput,'DirectSound',TMMNonVisualComponent,'Channel',TMMDSChannelConnector,DSChannelConnectCheck);
  94.     RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Level1', TMMLevel, nil);
  95.     RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Level2', TMMLevel, nil);
  96.     {$IFNDEF LEVEL_ONLY}
  97.     RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Meter1', TMMMeter, nil);
  98.     RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Meter2', TMMMeter, nil);
  99.     {$ENDIF}
  100.     RegisterProperty(ptInput,'DirectSound',TMMDSCapture,'CaptureObject',TMMDSCaptureChannel,nil);
  101.     RegisterProperty(ptOutput,'DirectSound',TMMDSEditor,'EditObject',TMMDSWaveMixer,nil);
  102.     RegisterProperty(ptOutput,'DirectSound',TMMDSEditor,'EditObject',TMMDSMixChannel,nil);
  103. end.