MMPHASES.INT 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 MMPhaseS;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinTypes,
  33. WinProcs,
  34. {$ENDIF}
  35. SysUtils,
  36. Classes,
  37. Controls,
  38. IniFiles,
  39. MMSystem,
  40. MMRegs,
  41. MMObj,
  42. MMDSPObj,
  43. MMUtils,
  44. MMMath,
  45. MMWaveIO,
  46. MMPCMSup,
  47. MMFX;
  48. type
  49. EMMPhaseShiftError = class(Exception);
  50. {-- TMMPhaseShift ---------------------------------------------------------}
  51. TMMPhaseShift = class(TMMDSPComponent)
  52. public
  53. constructor Create(aOwner: TComponent); override;
  54. destructor Destroy; override;
  55. procedure SaveToIniFile(IniFile: TFileName; Section: string);
  56. procedure ReadFromIniFile(IniFile: TFileName; Section: string);
  57. procedure ReadIniSections(IniFile: TFileName; Strings: TStrings);
  58. procedure DeleteSection(IniFile: TFileName; Section: string);
  59. procedure Open;
  60. procedure Close;
  61. procedure Process(Buffer: PChar; Length: integer);
  62. published
  63. property OnChange: TNotifyEvent read FOnChange write FOnChange;
  64. property OnPcmOverflow: TNotifyEvent read FOnPcmOverflow write FOnPcmOverflow;
  65. property Input;
  66. property Output;
  67. property Enabled: Boolean read FEnabled write SetEnabled default True;
  68. property Description: String read FDescription write SetDescription;
  69. property DryMix: TMMEffectVolume index 0 read FDryMix write SetGains;
  70. property WetMix: TMMEffectVolume index 1 read FWetMix write SetGains;
  71. property FeedBack: TMMFeedBack read FFeedback write SetFeedBack;
  72. property Sweep: Float read FSweep write SetSweep;
  73. property Depth: Float read FDepth write SetDepth;
  74. property Rate: Float read FRate write SetRate;
  75. end;
  76. implementation