| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 09.03.98 - 23:33:29 $ =}
- {========================================================================}
- unit MMADPCM;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinProcs,
- WinTypes,
- {$ENDIF}
- SysUtils,
- MMSystem,
- MMObj,
- MMUtils,
- MMMulDiv,
- MMRegs,
- MMPCMSup;
- function adpcmDecode4Bit(lpwfADPCM: PADPCMWaveFormat; lpwfPCM: PPCMWaveFormat; pSrc, pDst: PChar; dwSrcLen: DWORD): DWORD;
- function adpcmEncode4Bit(lpwfPCM: PPCMWaveFormat; lpwfADPCM: PADPCMWaveFormat; pSrc, pDst: PChar; dwSrcLen: DWORD): DWORD;
- function adpcmIsValidFormat(lpwfx: PWaveFormatEx): Boolean;
- function adpcmBuildFormatHeader(lpwfxSrc, lpwfxDst: PWaveFormatEx; PCMBitLength,DestChannels,DestRate: integer): Boolean;
- implementation
|