| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= 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: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMDSEdtr;
- {$I COMPILER.INC}
- interface
- uses
- Windows,
- SysUtils,
- DsgnIntf,
- Classes,
- MMDSETyp,
- MMWavPrp,
- MMUtils,
- MMDSMix,
- MMObj;
- type
- {-- TMMDSEditor --------------------------------------------------------------}
- TMMDSEditor = class(TMMComponent)
- public
- function Execute: Boolean;
- published
- property EditObject: TMMComponent read FObj write FObj;
- property Available: Boolean read GetAvailable write FBDummy;
- end;
- EMMDSEditor = class(Exception);
- {-- TMMDSEditorEditObjectProperty --------------------------------------------}
- TMMDSEditorEditObjectProperty = class(TComponentProperty)
- public
- procedure GetValues(Proc: TGetStrProc); override;
- end;
- {-- TMM3DSoundProperty -------------------------------------------------------}
- TMM3DSoundProperty = class(TClassProperty)
- public
- procedure Edit; override;
- function GetAttributes: TPropertyAttributes; override;
- end;
- {-- TMMDSWaveMixerEditor -----------------------------------------------------}
- TMMDSWaveMixerEditor = class(TComponentEditor)
- public
- function GetVerbCount: Integer; override;
- function GetVerb(Index: Integer): string; override;
- procedure ExecuteVerb(Index: Integer); override;
- end;
- {-- TMMDSMixChannelEditor ----------------------------------------------------}
- TMMDSMixChannelEditor = class(TMMWaveComponentEditor)
- public
- function GetVerbCount: Integer; override;
- function GetVerb(Index: Integer): string; override;
- procedure ExecuteVerb(Index: Integer); override;
- end;
- var
- DSEDCreateScene : function(var Scene: THandle): Boolean; stdcall = nil;
- DSEDSetMixerParams : function(Scene: THandle; const Params: TMMDSEDMixerParams): Boolean; stdcall;
- DSEDSetListenerParams : function(Scene: THandle; const Params: TMMDSEDListenerParams): Boolean; stdcall;
- DSEDGetMixerParams : function(Scene: THandle; var Params: TMMDSEDMixerParams): Boolean; stdcall;
- DSEDGetListenerParams : function(Scene: THandle; var Params: TMMDSEDListenerParams): Boolean; stdcall;
- DSEDSetBufferParams : function(Scene: THandle; Index: Integer; const Params: TMMDSEDBufferParams): Boolean; stdcall;
- DSEDSetSourceParams : function(Scene: THandle; Index: Integer; const Params: TMMDSEDSourceParams): Boolean; stdcall;
- DSEDGetBufferParams : function(Scene: THandle; Index: Integer; var Params: TMMDSEDBufferParams): Boolean; stdcall;
- DSEDGetSourceParams : function(Scene: THandle; Index: Integer; var Params: TMMDSEDSourceParams): Boolean; stdcall;
- DSEDSetSourceWave : function(Scene: THandle; Index: Integer; const WaveData: TMMDSEDWaveRecord): Boolean; stdcall;
- DSEDSetObjectName : function(Scene: THandle; Index: Integer; Name: PChar): Boolean; stdcall = nil;
- DSEDSetFocusIndex : function(Scene: THandle; Index: Integer): Boolean; stdcall = nil;
- DSEDAddSource : function(Scene: THandle; var Index: Integer): Boolean; stdcall = nil;
- DSEDDestroyScene : function(Scene: THandle): Boolean; stdcall = nil;
- DSEDEditScene : function(Scene: THandle; var Modified: Boolean): Boolean; stdcall = nil;
- DSEDGetLastError : function: Integer; stdcall = nil;
- // User is responsible to keep a copy of returned string
- DSEDGetLastErrorMessage : function: PChar; stdcall = nil;
- function DSEDIsAvailable: Boolean;
|