ac3_stream.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef __AC3_STREAM_
  2. #define __AC3_STREAM_
  3. //------------------------------------------------------------------------------------------------
  4. // includes
  5. //------------------------------------------------------------------------------------------------
  6. #include <windows.h>
  7. #include "eaxac3.h"
  8. #ifdef __cplusplus
  9. extern "C"
  10. {
  11. #endif
  12. // init
  13. int adas_AC3_Init(void);
  14. // Release
  15. void adas_AC3_Release(void);
  16. // enum AC3 devices
  17. int adas_AC3_Enum_Devices(void);
  18. // get AC3 device caps
  19. void adas_AC3_Get_Device_Caps(int Device, EAXAC3DEVICEINFO * p_Device_Info);
  20. // open AC3 device
  21. int adas_AC3_Open_Device(int Device);
  22. // Close AC3 device
  23. int adas_AC3_Close_Device(int Device);
  24. // Gets file info
  25. int adas_AC3_Query_File(char *p_File_Name, AC3FILEINFO * p_File_Info);
  26. // open AC3 stream
  27. int adas_AC3_Open_Stream(int Device, char *p_File_Name, int AC3_Source,
  28. AC3STREAM * p_AC3_Stream, LPAC3CALLBACK AC3_Call_Back);
  29. // close AC3 stream
  30. int adas_AC3_Close_Stream(AC3STREAM AC3_Stream);
  31. // play AC3 stream
  32. int adas_AC3_Play_Stream(AC3STREAM AC3_Stream, BOOL Loop);
  33. // setup AC3 stream:
  34. // Fuction will perfort exactly same operations as AC3_Play_Stream method - exept
  35. // for actually starting to play data.
  36. int adas_AC3_Setup_Stream(AC3STREAM AC3_Stream);
  37. // stop AC3 stream
  38. int adas_AC3_Stop_Stream(AC3STREAM AC3_Stream);
  39. // pause AC3 stream
  40. int adas_AC3_Pause_Stream(AC3STREAM AC3_Stream);
  41. // resume AC3 stream
  42. int adas_AC3_Resume_Stream(AC3STREAM AC3_Stream);
  43. // set AC3 file position
  44. int adas_AC3_Set_File_Position(AC3STREAM AC3_Stream, int Pos_Format,
  45. int iValue);
  46. // get AC3 file position
  47. int adas_AC3_Get_File_Position(AC3STREAM AC3_Stream, int Pos_Format,
  48. int *iValue);
  49. // set AC3 playback mode
  50. int adas_AC3_Playback_Mode(int Device, unsigned int Mode);
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif