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.

74 lines
1.9 KiB

  1. //
  2. // MODULE : STAUDIO.H
  3. // PURPOSE : Audio functions
  4. // AUTHOR : JBS Yadawa
  5. // CREATED : 7/20/96
  6. //
  7. //
  8. // Copyright (C) 1996 SGS-THOMSON Microelectronics
  9. //
  10. //
  11. // REVISION HISTORY :
  12. //
  13. // DATE :
  14. //
  15. // COMMENTS :
  16. //
  17. #ifndef __STAUDIO_H
  18. #define __STAUDIO_H
  19. #include "stdefs.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. typedef struct {
  24. WORD AudioState;
  25. WORD ErrorMsg; // Error Message
  26. WORD IntAudio; // Flag positioned when Audio interrupt is detected
  27. DWORD PtsAudio; // Audio PTS
  28. WORD StrType;
  29. BOOL FirstPTS; // if First PTS reached FirstPTS=TRUE
  30. WORD MaskItAudio; /* Audio Interrupt Mask */
  31. DWORD icd[4];
  32. BOOL mute; /* TRUE if audio is muted */
  33. BOOL Stepped; /* TRUE if last step command has been executed */
  34. BOOL fastForward; /* fast - TRUE = decode fast */
  35. WORD decSlowDown; /* If !=0 slow motion decoding */
  36. WORD DecodeMode; /* Is PLAY_MODE, FAST_MODE or SLOW_MODE */
  37. DWORD SampFreq;
  38. DWORD FrameCount; /* Frame Number */
  39. } AUDIO, *PAUDIO;
  40. void AudioOpen(PAUDIO);
  41. void AudioClose(void);
  42. void AudioInitDecoder(WORD StreamType);
  43. WORD AudioTestReg(void);
  44. WORD AudioTest(void);
  45. WORD AudioTestInt(void);
  46. void AudioSetMode(WORD Mode, WORD param);
  47. void AudioDecode(void);
  48. void AudioStep(void);
  49. void AudioStop(void);
  50. void AudioPause(void);
  51. WORD AudioGetState(void);
  52. void AudioSetSTCParameters(DWORD SampFreq);
  53. DWORD AudioGetSTC(void);
  54. DWORD AudioGetVideoSTC(void);
  55. void AudioInitSTC(DWORD stc);
  56. DWORD AudioGetPTS(void);
  57. WORD AudioGetErrorMsg(void);
  58. void AudioSetRightVolume(WORD volume);
  59. void AudioSetLeftVolume(WORD volume);
  60. void AudioMute(void);
  61. BOOL AudioIsFirstPTS(void);
  62. void AudioSetStreamType(WORD StrType);
  63. void AudioMaskInt(void);
  64. void AudioRestoreInt(void);
  65. BOOL AudioAudioInt (void);
  66. void AudioInitPesParser (WORD StreamType);
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif // #ifndef __STAUDIO_H