Source code of Windows XP (NT5)
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.

78 lines
2.5 KiB

  1. //***************************************************************************
  2. // Audio decoder header
  3. //
  4. //***************************************************************************
  5. #ifndef __CADEC_H__
  6. #define __CADEC_H__
  7. class ADecoder {
  8. private:
  9. PUCHAR ioBase;
  10. ULONG AudioMode; // AC3, PCM, ...
  11. ULONG AudioFreq; // audio frequency
  12. ULONG AudioType; // audio type - analog, digital, ...
  13. ULONG AudioCgms; // audio cgms
  14. // 3:No copying is permitted
  15. // 2:One generation of copies may be made
  16. // 1:Condition is not be used
  17. // 0:Copying is permitted without restriction
  18. ULONG AudioVolume;
  19. Dack *pDack;
  20. UCHAR INVERSE_BYTE( UCHAR uc );
  21. public:
  22. void init( const PDEVICE_INIT_INFO pDevInit );
  23. void SetParam( ULONG aMode, ULONG aFreq, ULONG aType, BOOL aCgms, Dack *pDack );
  24. // ***************************************************************************
  25. // T C 6 8 0 0 A F
  26. // ***************************************************************************
  27. void AUDIO_TC6800_INIT_PCM();
  28. void AUDIO_TC6800_INIT_AC3();
  29. void AUDIO_TC6800_INIT_MPEG();
  30. void AUDIO_TC6800_DATA_OFF();
  31. // ***************************************************************************
  32. // Z R 3 8 5 2 1
  33. // ***************************************************************************
  34. void AUDIO_ZR385_OUT( UCHAR val );
  35. void AUDIO_ZR385_DOWNLOAD( PUCHAR pData, ULONG size );
  36. void AUDIO_ZR38521_BOOT_AC3();
  37. void AUDIO_ZR38521_BOOT_MPEG();
  38. void AUDIO_ZR38521_BOOT_PCM();
  39. NTSTATUS AUDIO_ZR38521_CFG();
  40. NTSTATUS AUDIO_ZR38521_PCMX();
  41. NTSTATUS AUDIO_ZR38521_AC3();
  42. NTSTATUS AUDIO_ZR38521_MPEG1();
  43. NTSTATUS AUDIO_ZR38521_PLAY();
  44. NTSTATUS AUDIO_ZR38521_MUTE_OFF();
  45. NTSTATUS AUDIO_ZR38521_MUTE_ON();
  46. NTSTATUS AUDIO_ZR38521_STOP();
  47. NTSTATUS AUDIO_ZR38521_STOPF();
  48. NTSTATUS AUDIO_ZR38521_STCR();
  49. NTSTATUS AUDIO_ZR38521_VDSCR_ON( ULONG stc );
  50. NTSTATUS AUDIO_ZR38521_VDSCR_OFF( ULONG stc );
  51. NTSTATUS AUDIO_ZR38521_AVSYNC_OFF( ULONG stc );
  52. NTSTATUS AUDIO_ZR38521_AVSYNC_ON( ULONG stc );
  53. NTSTATUS AUDIO_ZR38521_STAT( PULONG pDiff );
  54. NTSTATUS AUDIO_ZR38521_KCOEF();
  55. void AUDIO_ZR38521_REPEAT_02();
  56. void AUDIO_ZR38521_REPEAT_16();
  57. NTSTATUS AUDIO_ZR38521_BFST( PULONG pErrCode );
  58. // ***************************************************************************
  59. // T C 9 4 2 5 F
  60. // ***************************************************************************
  61. void AUDIO_TC9425_INIT_DIGITAL();
  62. void AUDIO_TC9425_INIT_ANALOG();
  63. void AUDIO_TC9425_SET_VOLUME( ULONG vol );
  64. };
  65. #endif // __CADEC_H__