MMWavReg.pas
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:6k
- {========================================================================}
- {= (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: 10.09.98 - 20:54:38 $ =}
- {========================================================================}
- unit MMWavReg;
- {$I COMPILER.INC}
- {$IFNDEF BCB}
- {$IFNDEF DELPHI2}
- {$IFNDEF DELPHI5}
- {$DEFINE USEBLOB}
- {$ENDIF}
- {$ENDIF}
- {$ENDIF}
- Interface
- Procedure Register;
- Implementation
- {$IFDEF WIN32}
- {$R MMWAVE.D32}
- {$ELSE}
- {$R MMWAVE.D16}
- {$ENDIF}
- uses
- Controls,
- Classes,
- {$IFDEF DELPHI6}
- DesignIntf,
- DesignEditors,
- {$ELSE}
- DsgnIntf,
- {$ENDIF}
- SysUtils,
- {$IFNDEF DELPHI3}
- FiltEdit,
- {$ENDIF}
- MMDesign,
- MMIde,
- MMDSPProps,
- MMDSPObj,
- MMACMDlg,
- MMWavPrp,
- MMWave,
- MMWInfo,
- {$IFNDEF BUILD_ACTIVEX}
- {$IFDEF USEBLOB}
- MMWBlob,
- {$ENDIF}
- {$ENDIF}
- MMCstDlg,
- MMWavIn,
- MMWavOut,
- {$IFDEF WIN32}
- MMTrigg,
- MMRingBf,
- {$ENDIF}
- MMADCvt,
- MMACMCvt,
- MMDSPMtr,
- MMEnvelp,
- MMEnvDlg,
- MMEnvPrp,
- MMPLoad,
- MMWPlay,
- MMWRec;
- {=========================================================================}
- procedure Register;
- begin
- RegisterComponents('MMWave', [TMMACM,
- TMMWaveFile,
- TMMMemoryWave,
- {$IFNDEF BUILD_ACTIVEX}
- {$IFDEF USEBLOB}
- TMMWaveBlob,
- {$ENDIF}
- {$ENDIF}
- TMMWaveInfoEditor,
- TMMWaveOpenDialog,
- TMMWaveSaveDialog,
- TMMPictureOpenDialog,
- TMMPictureSaveDialog,
- TMMWavePlayer,
- TMMWaveRecorder,
- {$IFDEF WIN32}
- TMMRingBuffer,
- {$ENDIF}
- TMMPreloader,
- TMMWaveIn,
- TMMWaveOut,
- TMMDSPInterface,
- TMMADPCMConverter,
- {$IFDEF WIN32}
- TMMPCMConverter,
- TMMACMConverter,
- TMMTrigger,
- TMMDSPMeter,
- {$ENDIF}
- TMMEnvelope]);
- {$IFNDEF DELPHI3}
- RegisterPropertyEditor(TypeInfo(String), TMMCustomOpenDialog, 'Filter',
- TFilterProperty);
- {$ENDIF}
- RegisterPropertyEditor(TypeInfo(TMMWave), nil,'',TMMWaveProperty);
- RegisterPropertyEditor(TypeInfo(TFileName),TMMWave,'FileName',TMMWaveFileProperty);
- RegisterPropertyEditor(TypeInfo(TMMEnvelopePointList), TMMEnvelope, 'Points', TMMEnvelopePointProperty);
- RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSPComponent,'Input',TMMDSPComponentInputEditor);
- RegisterPropertyEditor(TypeInfo(TMMDSPComponent),TMMDSPComponent,'Output',TMMDSPComponentOutputEditor);
- RegisterComponentEditor(TMMEnvelope, TMMEnvelopeEditor);
- RegisterComponentEditor(TMMCustomWaveFile, TMMWaveComponentEditor);
- RegisterComponentEditor(TMMWavePlayer, TMMWaveComponentEditor);
- RegisterComponentEditor(TMMWaveRecorder, TMMWaveComponentEditor);
- RegisterPropertyEditor(TypeInfo(string), TMMWaveRecorder,'InputFormat',TMMWaveFormatProperty);
- end;
- initialization
- RegisterProperty(ptOutput,'DSP',TMMDSPComponent,'Output',TMMDSPComponent,DSPOutConnectCheck);
- RegisterProperty(ptInput,'DSP',TMMDSPComponent,'Input',TMMDSPComponent,DSPInpConnectCheck);
- RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWaveIn,nil);
- RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMCustomMemoryWave,nil);
- RegisterProperty(ptInput,'Misc',TMMCustomWaveFile,'Source',TMMACM,nil);
- RegisterProperty(ptInput,'Misc',TMMCustomWaveFile,'Source',TMMWaveInfoEditor,nil);
- RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWavePlayer,nil);
- RegisterPropertyException(ptOutput,'DSP',TMMDSPComponent,'Output',TMMWaveRecorder,nil);
- end.