⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmdsreg.pas

📁 一套及时通讯的原码
💻 PAS
字号:
{========================================================================}
{=                (c) 1995-98 SwiftSoft Ronald Dittrich                 =}
{========================================================================}
{=                          All Rights Reserved                         =}
{========================================================================}
{=  D 01099 Dresden             = Fax.: +49 (0)351-8037944              =}
{=  Loewenstr.7a                = info@swiftsoft.de                     =}
{========================================================================}
{=  Actual versions on http://www.swiftsoft.de/mmtools.html             =}
{========================================================================}
{=  This code is for reference purposes only and may not be copied or   =}
{=  distributed in any format electronic or otherwise except one copy   =}
{=  for backup purposes.                                                =}
{=                                                                      =}
{=  No Delphi Component Kit or Component individually or in a collection=}
{=  subclassed or otherwise from the code in this unit, or associated   =}
{=  .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed     =}
{=  without express permission from SwiftSoft.                          =}
{=                                                                      =}
{=  For more licence informations please refer to the associated        =}
{=  HelpFile.                                                           =}
{========================================================================}
{=  $Date: 11.08.98 - 14:55:07 $                                        =}
{========================================================================}
unit MMDSReg;

{$I COMPILER.INC}

Interface

Procedure Register;

Implementation

{$R MMDSOUND.D32}

uses
    {$IFDEF DELPHI6}
    DesignIntf,
    DesignEditors,
    {$ELSE}
    DsgnIntf,
    {$ENDIF}
    Controls,
    Classes,
    SysUtils,
    MMObj,
    MMDSPObj,
    MMDesign,
    MMIDE,
    MMDSProps,
    MMDSWOut,
    MMDSMix,
    MMDSEdtr,
    MMDSWvIn,
    MMDSCptr,
    {$IFNDEF DELPHI2}
    {$IFNDEF BCB}
    MMDSMidi,
    {$ENDIF}
    {$ENDIF}
    MMDSCon,
    MMLevel
    {$IFNDEF LEVEL_ONLY}
    ,MMMeter
    {$ENDIF}
    ;

{=========================================================================}
procedure Register;
begin
    RegisterComponents('MMDSound', [TMMDSWaveOut,
                                    TMMDSWaveIn,
                                    TMMDSWaveMixer,
                                    TMMDSMixChannel,
                                    {$IFNDEF DELPHI2}
                                    {$IFNDEF BCB}
                                    TMMDSMidiChannel,
                                    {$ENDIF}
                                    {$ENDIF}
                                    TMMDSEditor,
                                    TMMDSCapture,
                                    TMMDSCaptureChannel,
                                    TMMDSChannelConnector]);

    RegisterComponentEditor(TMMDSWaveMixer, TMMDSWaveMixerEditor);
    RegisterComponentEditor(TMMDSMixChannel, TMMDSMixChannelEditor);
    RegisterComponentEditor(TMMDSCaptureChannel, TMMDSWaveFormatComponentEditor);

    RegisterPropertyEditor(TypeInfo(TMMComponent),TMMDSEditor,'EditObject',TMMDSEditorEditObjectProperty);
    RegisterPropertyEditor(TypeInfo(TMMDS3DControl), nil, 'Sound3D', TMM3DSoundProperty);
    RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSChannelConnector,'Channel',TMMDSChannelConnectorEditor);

    RegisterPropertyEditor(TypeInfo(string), TMMDSCaptureChannel,'InputFormat',TMMDSWaveFormatProperty);
end;

initialization
    RegisterProperty(ptOutput,'DirectSound',TMMDSMixChannel,'Mixer',TMMDSWaveMixer,nil);
    {$IFNDEF DELPHI2}
    {$IFNDEF BCB}
    RegisterProperty(ptOutput,'DirectSound',TMMDSMidiChannel,'Mixer',TMMDSWaveMixer,nil);
    {$ENDIF}
    {$ENDIF}
    RegisterProperty(ptInput,'DirectSound',TMMNonVisualComponent,'Channel',TMMDSChannelConnector,DSChannelConnectCheck);
    RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Level1', TMMLevel, nil);
    RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Level2', TMMLevel, nil);
    {$IFNDEF LEVEL_ONLY}
    RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Meter1', TMMMeter, nil);
    RegisterProperty(ptOutput,'DirectSound',TMMDSChannelConnector, 'Meter2', TMMMeter, nil);
    {$ENDIF}
    RegisterProperty(ptInput,'DirectSound',TMMDSCapture,'CaptureObject',TMMDSCaptureChannel,nil);
    RegisterProperty(ptOutput,'DirectSound',TMMDSEditor,'EditObject',TMMDSWaveMixer,nil);
    RegisterProperty(ptOutput,'DirectSound',TMMDSEditor,'EditObject',TMMDSMixChannel,nil);
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -