MMWREC.INT 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 MMWRec;
  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. MMRegs,
  39. MMObj,
  40. MMDSPobj,
  41. MMUtils,
  42. MMWave,
  43. MMWavIn,
  44. MMWaveIO,
  45. MMACMDlg;
  46. type
  47. {-- TMMWaveRecorer --------------------------------------------------------}
  48. TMMWaveRecorder = class(TMMDSPComponent)
  49. public
  50. constructor Create(aOwner: TComponent); override;
  51. destructor Destroy; override;
  52. procedure Recording;
  53. procedure Stop;
  54. procedure Pause;
  55. procedure Restart;
  56. property PWaveFormat;
  57. property State: TMMWaveInState read GetState;
  58. property Position: Longint read GetPosition;
  59. published
  60. property OnStart: TNotifyEvent read FOnStart write FOnStart;
  61. property OnStop: TNotifyEvent read FOnStop write FOnStop;
  62. property OnPause: TNotifyEvent read FOnPause write FOnPause;
  63. property OnRestart: TNotifyEvent read FOnRestart write FOnRestart;
  64. property OnChange: TNotifyEvent read FOnChange write FOnChange;
  65. property Output;
  66. property Wave: TMMWave read GetWave write SetWave;
  67. property BufferSize: Longint read GetBufferSize write SetBufferSize;
  68. property NumBuffers: integer read GetNumBuffers write SetNumBuffers;
  69. property DeviceID: TMMDeviceID read GetDeviceID write SetDeviceID;
  70. property ProductName: string read GetProductName write SetDummyString stored False;
  71. property TimeFormat: TMMTimeFormats read GetTimeFormat write SetTimeFormat;
  72. property CallBackMode: TMMCBMode read GetCallBackMode write SetCallBackMode;
  73. property MaxRecordTime: Longint read GetMaxRecTime write SetMaxRecTime;
  74. property InputFormat: string read GetInputFormat write SetDummyString stored False;
  75. end;
  76. implementation