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.

41 lines
1.5 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: fdtglob.h
  6. * Content: Declares global variables used for IPC mechanisms.
  7. * History:
  8. * Date By Reason
  9. * ============
  10. * 08/25/99 pnewson created
  11. * 09/14/99 pnewson converted from raw globals to classes
  12. ***************************************************************************/
  13. #ifndef _FDTGLOB_H_
  14. #define _FDTGLOB_H_
  15. // the critical section to guard these globals
  16. extern DNCRITICAL_SECTION g_csGuard;
  17. // the macros used to manipulate this guard
  18. //#define InitGlobGuard() DPFX(DPFPREP, 5, "InitGuard"), DNInitializeCriticalSection(&g_csGuard)
  19. #define InitGlobGuard() DNInitializeCriticalSection(&g_csGuard)
  20. #define DeinitGlobGuard() DNDeleteCriticalSection(&g_csGuard)
  21. #define GlobGuardIn() DNEnterCriticalSection(&g_csGuard)
  22. #define GlobGuardOut() DNLeaveCriticalSection(&g_csGuard)
  23. // the DirectSound objects
  24. extern LPDIRECTSOUND g_lpdsPriorityRender;
  25. extern LPDIRECTSOUND g_lpdsFullDuplexRender;
  26. extern LPDIRECTSOUNDCAPTURE g_lpdscFullDuplexCapture;
  27. extern LPDIRECTSOUNDBUFFER g_lpdsbPriorityPrimary;
  28. extern LPDIRECTSOUNDBUFFER g_lpdsbPrioritySecondary;
  29. extern LPDIRECTSOUNDBUFFER g_lpdsbFullDuplexSecondary;
  30. extern LPDIRECTSOUNDNOTIFY g_lpdsnFullDuplexSecondary;
  31. extern HANDLE g_hFullDuplexRenderEvent;
  32. extern LPDIRECTSOUNDCAPTUREBUFFER g_lpdscbFullDuplexCapture;
  33. extern LPDIRECTSOUNDNOTIFY g_lpdsnFullDuplexCapture;
  34. extern HANDLE g_hFullDuplexCaptureEvent;
  35. #endif