Windows2003-3790/enduser/netmeeting/av/codecs/lh/fv_h8.h

97 lines
2.2 KiB
C
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
/*
* Project: LHCODING.DLL (L&H Speech Coding SDK)
* Workfile: fv_m8.h
* Author: Alfred Wiesen
* Created: 13 June 1995
* Last update: 13 June 1995
* DLL Version: 1
* Revision: Version 1.0 of FASTVOX_XXX splitted versions
* Comment:
*
* (C) Copyright 1993-94 Lernout & Hauspie Speech Products N.V. (TM)
* All rights reserved. Company cnfidential.
*/
# ifndef __FV_H8_H /* avoid multiple include */
# define __FV_H8_H
/*
* Type definition for the L&H functions returned values
*/
typedef DWORD LH_ERRCODE;
typedef struct CodecInfo_tag {
WORD wPCMBufferSize;
WORD wCodedBufferSize;
WORD wBitsPerSamplePCM;
DWORD dwSampleRate;
WORD wFormatSubTag;
char wFormatSubTagName[40];
DWORD dwDLLVersion;
} CODECINFO, near *PCODECINFO, far *LPCODECINFO;
/*
* Possible values for the LH_ERRCODE type
*/
# define LH_SUCCESS 0 /* everything is OK */
# define LH_EFAILURE -1 /* something went wrong */
# define LH_EBADARG -2 /* one of the given argument is incorrect */
# define LH_BADHANDLE -3 /* bad handle passed to function */
/*
* Some real types are defined here
*/
# ifdef __cplusplus
# define LH_PREFIX extern "C"
# else
# define LH_PREFIX
# endif
# define LH_SUFFIX FAR PASCAL
/*
* The function prototypes for 16000 bps, 8000 Hz, Fixed point
*/
LH_PREFIX HANDLE LH_SUFFIX
LHSB_FIXv0808K_Open_Coder( void );
LH_PREFIX LH_ERRCODE LH_SUFFIX
LHSB_FIXv0808K_Encode(
HANDLE hAccess,
LPBYTE inputBufferPtr,
LPWORD inputBufferLength,
LPBYTE outputBufferPtr,
LPWORD outputBufferLength
);
LH_PREFIX LH_ERRCODE LH_SUFFIX
LHSB_FIXv0808K_Close_Coder( HANDLE hAccess);
LH_PREFIX HANDLE LH_SUFFIX
LHSB_FIXv0808K_Open_Decoder( void );
LH_PREFIX LH_ERRCODE LH_SUFFIX
LHSB_FIXv0808K_Decode(
HANDLE hAccess,
LPBYTE inputBufferPtr,
LPWORD inputBufferLength,
LPBYTE outputBufferPtr,
LPWORD outputBufferLength
);
LH_PREFIX LH_ERRCODE LH_SUFFIX
LHSB_FIXv0808K_Close_Decoder( HANDLE hAccess);
LH_PREFIX void LH_SUFFIX
LHSB_FIXv0808K_GetCodecInfo(LPCODECINFO lpCodecInfo);
# endif /* avoid multiple include */