MMACMCVT.PAS 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: 27.01.1998 - 05:53:13 $ =}
  24. {========================================================================}
  25. unit MMACMCvt;
  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. MMSystem,
  39. MMRegs,
  40. MMObj,
  41. MMDSPObj,
  42. MMString,
  43. MMUtils,
  44. MMWaveIO,
  45. MMPCMSup,
  46. MMACMSup;
  47. type
  48. EMMConverterError = class(Exception);
  49. TMMConvertQuality = (cqHigh,cqLow);
  50. {-- TMMPCMConverter --------------------------------------------------------}
  51. TMMACMConverter = class(TMMDSPComponent)
  52. public
  53. constructor Create(aOwner: TComponent); override;
  54. destructor Destroy; override;
  55. procedure Open;
  56. procedure Close;
  57. procedure Start;
  58. procedure Stop;
  59. property CanConvert: Boolean read GetCanConvert;
  60. published
  61. property Input;
  62. property Output;
  63. property Quality: TMMConvertQuality read FQuality write FQuality default cqLow;
  64. end;
  65. {-- TMMPCMConverter --------------------------------------------------------}
  66. TMMPCMConverter = class(TMMACMConverter)
  67. public
  68. constructor Create(aOwner: TComponent); override;
  69. published
  70. property AutoConvert: Boolean read FAutoConvert write SetAutoConvert default True;
  71. property SampleRate: Longint read FSampleRate write SetSampleRate default 11025;
  72. property BitLength: TMMBits read FBits write setBits default b8bit;
  73. property Mode: TMMMode read FMode write SetMode default mMono;
  74. end;
  75. implementation