dxl_aud.h 821 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _dxl_aud_h
  2. #define _dxl_aud_h
  3. #include "duck_hfb.h"
  4. #include "duck_dxl.h"
  5. enum spkrst8 { SPEAKEROFF = 0, SPEAKERON = 1, FEEDSPEAKER = 2, MONOSPEAKER = 3};
  6. enum syncst8 { NOSYNC = 0, SYNCSPEAKER = 1, SYNCSYSTEM = 2};
  7. extern enum spkrst8 speakerstate;
  8. extern enum syncst8 syncstate;
  9. void Announcement(char *msg);
  10. extern "C" {
  11. int FillAudio( HFB_BUFFER_HANDLE hfb, MFP_STREAM_HANDLE as, int *index,
  12. void **blk, long *Len, int buffPreload, int MultiBlock);
  13. int SetupAudio( HFB_BUFFER_HANDLE hfb, MFP_STREAM_HANDLE as, int Setstate,
  14. int freq, int width16, int Stereo);
  15. void StartPlaying(void) ;
  16. void StopPlaying(void);
  17. void ResyncAudio(
  18. HFB_BUFFER_HANDLE hfb,
  19. HFB_STREAM_HANDLE astr,
  20. int *index, void **blk, long *Len, int frame, int frame_rate);
  21. }
  22. #endif