MMADPCM.PAS 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
  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: 09.03.98 - 23:33:29 $ =}
  24. {========================================================================}
  25. unit MMADPCM;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinProcs,
  33. WinTypes,
  34. {$ENDIF}
  35. SysUtils,
  36. MMSystem,
  37. MMObj,
  38. MMUtils,
  39. MMMulDiv,
  40. MMRegs,
  41. MMPCMSup;
  42. function adpcmDecode4Bit(lpwfADPCM: PADPCMWaveFormat; lpwfPCM: PPCMWaveFormat; pSrc, pDst: PChar; dwSrcLen: DWORD): DWORD;
  43. function adpcmEncode4Bit(lpwfPCM: PPCMWaveFormat; lpwfADPCM: PADPCMWaveFormat; pSrc, pDst: PChar; dwSrcLen: DWORD): DWORD;
  44. function adpcmIsValidFormat(lpwfx: PWaveFormatEx): Boolean;
  45. function adpcmBuildFormatHeader(lpwfxSrc, lpwfxDst: PWaveFormatEx; PCMBitLength,DestChannels,DestRate: integer): Boolean;
  46. implementation