Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.3 KiB

  1. /*
  2. * Project: LHCODING.DLL (L&H Speech Coding SDK)
  3. * Workfile: fv_m8.h + fv_h8.h + private
  4. * Author: Alfred Wiesen
  5. * Created: 13 June 1995
  6. * Last update: 14 February 1996
  7. * DLL Version: 1
  8. * Revision:
  9. * Comment:
  10. *
  11. * (C) Copyright 1993-94 Lernout & Hauspie Speech Products N.V. (TM)
  12. * All rights reserved. Company confidential.
  13. */
  14. # ifndef __FV_X8_H /* avoid multiple include */
  15. # define __FV_X8_H
  16. #pragma pack(push,8)
  17. /*
  18. * Type definition for the L&H functions returned values
  19. */
  20. typedef long LH_ERRCODE;
  21. typedef struct CodecInfo_tag {
  22. WORD wPCMBufferSize;
  23. WORD wCodedBufferSize;
  24. WORD wBitsPerSamplePCM;
  25. DWORD dwSampleRate;
  26. WORD wFormatSubTag;
  27. char wFormatSubTagName[40];
  28. DWORD dwDLLVersion;
  29. } CODECINFO, near *PCODECINFO, far *LPCODECINFO;
  30. /*
  31. * Possible values for the LH_ERRCODE type
  32. */
  33. # define LH_SUCCESS (0) /* everything is OK */
  34. # define LH_EFAILURE (-1) /* something went wrong */
  35. # define LH_EBADARG (-2) /* one of the given argument is incorrect */
  36. # define LH_BADHANDLE (-3) /* bad handle passed to function */
  37. /*
  38. * Some real types are defined here
  39. */
  40. # ifdef __cplusplus
  41. # define LH_PREFIX extern "C"
  42. # else
  43. # define LH_PREFIX
  44. # endif
  45. #if 0
  46. # define LH_SUFFIX FAR PASCAL
  47. #else
  48. # define LH_SUFFIX
  49. #endif
  50. /*
  51. * The function prototypes for 4800 bps, 8000 bps, 12000 bps, 16000 bps, 8000 Hz, Fixed point
  52. */
  53. LH_PREFIX HANDLE LH_SUFFIX MSLHSB_Open_Coder(DWORD dwMaxBitRate);
  54. LH_PREFIX LH_ERRCODE LH_SUFFIX MSLHSB_Encode(
  55. HANDLE hAccess,
  56. LPBYTE inputBufferPtr,
  57. LPWORD inputBufferLength,
  58. LPBYTE outputBufferPtr,
  59. LPWORD outputBufferLength
  60. );
  61. LH_PREFIX LH_ERRCODE LH_SUFFIX MSLHSB_Close_Coder(HANDLE hAccess);
  62. LH_PREFIX HANDLE LH_SUFFIX MSLHSB_Open_Decoder(DWORD dwMaxBitRate);
  63. LH_PREFIX LH_ERRCODE LH_SUFFIX MSLHSB_Decode(
  64. HANDLE hAccess,
  65. LPBYTE inputBufferPtr,
  66. LPWORD inputBufferLength,
  67. LPBYTE outputBufferPtr,
  68. LPWORD outputBufferLength
  69. );
  70. LH_PREFIX LH_ERRCODE LH_SUFFIX MSLHSB_Close_Decoder(HANDLE hAccess);
  71. LH_PREFIX LH_ERRCODE LH_SUFFIX MSLHSB_GetCodecInfo(LPCODECINFO lpCodecInfo, DWORD dwMaxBitRate);
  72. #pragma pack(pop)
  73. # endif /* avoid multiple include */