MMDSEDTR.INT 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  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: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMDSEdtr;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. Windows,
  30. SysUtils,
  31. DsgnIntf,
  32. Classes,
  33. MMDSETyp,
  34. MMWavPrp,
  35. MMUtils,
  36. MMDSMix,
  37. MMObj;
  38. type
  39. {-- TMMDSEditor --------------------------------------------------------------}
  40. TMMDSEditor = class(TMMComponent)
  41. public
  42. function Execute: Boolean;
  43. published
  44. property EditObject: TMMComponent read FObj write FObj;
  45. property Available: Boolean read GetAvailable write FBDummy;
  46. end;
  47. EMMDSEditor = class(Exception);
  48. {-- TMMDSEditorEditObjectProperty --------------------------------------------}
  49. TMMDSEditorEditObjectProperty = class(TComponentProperty)
  50. public
  51. procedure GetValues(Proc: TGetStrProc); override;
  52. end;
  53. {-- TMM3DSoundProperty -------------------------------------------------------}
  54. TMM3DSoundProperty = class(TClassProperty)
  55. public
  56. procedure Edit; override;
  57. function GetAttributes: TPropertyAttributes; override;
  58. end;
  59. {-- TMMDSWaveMixerEditor -----------------------------------------------------}
  60. TMMDSWaveMixerEditor = class(TComponentEditor)
  61. public
  62. function GetVerbCount: Integer; override;
  63. function GetVerb(Index: Integer): string; override;
  64. procedure ExecuteVerb(Index: Integer); override;
  65. end;
  66. {-- TMMDSMixChannelEditor ----------------------------------------------------}
  67. TMMDSMixChannelEditor = class(TMMWaveComponentEditor)
  68. public
  69. function GetVerbCount: Integer; override;
  70. function GetVerb(Index: Integer): string; override;
  71. procedure ExecuteVerb(Index: Integer); override;
  72. end;
  73. var
  74. DSEDCreateScene : function(var Scene: THandle): Boolean; stdcall = nil;
  75. DSEDSetMixerParams : function(Scene: THandle; const Params: TMMDSEDMixerParams): Boolean; stdcall;
  76. DSEDSetListenerParams : function(Scene: THandle; const Params: TMMDSEDListenerParams): Boolean; stdcall;
  77. DSEDGetMixerParams : function(Scene: THandle; var Params: TMMDSEDMixerParams): Boolean; stdcall;
  78. DSEDGetListenerParams : function(Scene: THandle; var Params: TMMDSEDListenerParams): Boolean; stdcall;
  79. DSEDSetBufferParams : function(Scene: THandle; Index: Integer; const Params: TMMDSEDBufferParams): Boolean; stdcall;
  80. DSEDSetSourceParams : function(Scene: THandle; Index: Integer; const Params: TMMDSEDSourceParams): Boolean; stdcall;
  81. DSEDGetBufferParams : function(Scene: THandle; Index: Integer; var Params: TMMDSEDBufferParams): Boolean; stdcall;
  82. DSEDGetSourceParams : function(Scene: THandle; Index: Integer; var Params: TMMDSEDSourceParams): Boolean; stdcall;
  83. DSEDSetSourceWave : function(Scene: THandle; Index: Integer; const WaveData: TMMDSEDWaveRecord): Boolean; stdcall;
  84. DSEDSetObjectName : function(Scene: THandle; Index: Integer; Name: PChar): Boolean; stdcall = nil;
  85. DSEDSetFocusIndex : function(Scene: THandle; Index: Integer): Boolean; stdcall = nil;
  86. DSEDAddSource : function(Scene: THandle; var Index: Integer): Boolean; stdcall = nil;
  87. DSEDDestroyScene : function(Scene: THandle): Boolean; stdcall = nil;
  88. DSEDEditScene : function(Scene: THandle; var Modified: Boolean): Boolean; stdcall = nil;
  89. DSEDGetLastError : function: Integer; stdcall = nil;
  90. // User is responsible to keep a copy of returned string
  91. DSEDGetLastErrorMessage : function: PChar; stdcall = nil;
  92. function DSEDIsAvailable: Boolean;