MMDSReg.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:5k
- {========================================================================}
- {= (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.