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.

114 lines
2.7 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: 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 cnfidential.
  13. */
  14. # ifndef __FV_M8_H /* avoid multiple include */
  15. # define __FV_M8_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. typedef struct CodecInfoEx_tag {
  30. WORD wFormatSubTag;
  31. char szFormatSubTagName[80];
  32. BOOL bIsVariableBitRate;
  33. BOOL bIsRealTimeEncoding;
  34. BOOL bIsRealTimeDecoding;
  35. WORD wInputDataFormat;
  36. DWORD dwInputSampleRate;
  37. WORD wInputBitsPerSample;
  38. DWORD nAvgBytesPerSec;
  39. WORD wInputBufferSize;
  40. WORD wCodedBufferSize;
  41. WORD wMinimumCodedBufferSize;
  42. DWORD dwDLLVersion;
  43. } CODECINFOEX, near *PCODECINFOEX, far *LPCODECINFOEX;
  44. /*
  45. * Possible values for the LH_ERRCODE type
  46. */
  47. # define LH_SUCCESS (0) /* everything is OK */
  48. # define LH_EFAILURE (-1) /* something went wrong */
  49. # define LH_EBADARG (-2) /* one of the given argument is incorrect */
  50. # define LH_BADHANDLE (-3) /* bad handle passed to function */
  51. /*
  52. * Some real types are defined here
  53. */
  54. # ifdef __cplusplus
  55. # define LH_PREFIX extern "C"
  56. # else
  57. # define LH_PREFIX
  58. # endif
  59. # define LH_SUFFIX FAR PASCAL
  60. /*
  61. * The function prototypes for 4800 bps, 8000 Hz, Fixed point
  62. */
  63. LH_PREFIX HANDLE LH_SUFFIX
  64. LHCELP_FIX488K_Open_Coder( void );
  65. LH_PREFIX LH_ERRCODE LH_SUFFIX
  66. LHCELP_FIX488K_Encode(
  67. HANDLE hAccess,
  68. LPBYTE inputBufferPtr,
  69. LPWORD inputBufferLength,
  70. LPBYTE outputBufferPtr,
  71. LPWORD outputBufferLength
  72. );
  73. LH_PREFIX LH_ERRCODE LH_SUFFIX
  74. LHCELP_FIX488K_Close_Coder( HANDLE hAccess);
  75. LH_PREFIX HANDLE LH_SUFFIX
  76. LHCELP_FIX488K_Open_Decoder( void );
  77. LH_PREFIX LH_ERRCODE LH_SUFFIX
  78. LHCELP_FIX488K_Decode(
  79. HANDLE hAccess,
  80. LPBYTE inputBufferPtr,
  81. LPWORD inputBufferLength,
  82. LPBYTE outputBufferPtr,
  83. LPWORD outputBufferLength
  84. );
  85. LH_PREFIX LH_ERRCODE LH_SUFFIX
  86. LHCELP_FIX488K_Close_Decoder( HANDLE hAccess);
  87. LH_PREFIX void LH_SUFFIX
  88. LHCELP_FIX488K_GetCodecInfo(LPCODECINFO lpCodecInfo);
  89. LH_PREFIX void LH_SUFFIX
  90. LHCELP_FIX488K_GetCodecInfoEx(LPCODECINFOEX lpCodecInfoEx,DWORD cbSize);
  91. # endif /* avoid multiple include */