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.

96 lines
2.2 KiB

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