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.

108 lines
3.6 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: fdtcfg.h
  6. * Content: Definitions the configure the full duplex test app
  7. * History:
  8. * Date By Reason
  9. * ============
  10. * 08/20/99 pnewson created
  11. * 10/28/99 pnewson Bug #114176 updated DVSOUNDDEVICECONFIG struct
  12. * 11/04/99 pnewson Bug #115279 removed unused const global
  13. * 11/30/99 pnewson default device mapping support
  14. * 01/21/2000 pnewson changed registry key names
  15. *
  16. ***************************************************************************/
  17. #ifndef _FDTCFG_H_
  18. #define _FDTCFG_H_
  19. // the name of the DLL where the direct voice functions reside
  20. extern const char gc_szDVoiceDLLName[];
  21. // the name of the DLL where the required resources are
  22. extern const char gc_szResDLLName[];
  23. // the name of the DirectSound DLL
  24. extern const char gc_szDSoundDLLName[];
  25. // the name of the GetDeviceID DirectSound function
  26. extern const char gc_szGetDeviceIDFuncName[];
  27. // command line related definitions
  28. extern const TCHAR gc_szPriorityCommand[];
  29. extern const TCHAR gc_szFullDuplexCommand[];
  30. // registry related definitions
  31. extern const WCHAR gc_wszKeyName_AudioConfig[];
  32. extern const WCHAR gc_wszValueName_Started[];
  33. extern const WCHAR gc_wszValueName_FullDuplex[];
  34. extern const WCHAR gc_wszValueName_HalfDuplex[];
  35. extern const WCHAR gc_wszValueName_MicDetected[];
  36. // the name of the mutex used to ensure only one app instance
  37. extern const TCHAR gc_szMutexName[];
  38. // the event names
  39. extern const TCHAR gc_szPriorityEventName[];
  40. extern const TCHAR gc_szFullDuplexEventName[];
  41. extern const TCHAR gc_szPriorityReplyEventName[];
  42. extern const TCHAR gc_szFullDuplexReplyEventName[];
  43. // the shared memory names, and sizes
  44. extern const TCHAR gc_szPriorityShMemName[];
  45. extern const DWORD gc_dwPriorityShMemSize;
  46. extern const TCHAR gc_szFullDuplexShMemName[];
  47. extern const DWORD gc_dwFullDuplexShMemSize;
  48. // the send mutex names
  49. extern const TCHAR gc_szPrioritySendMutex[];
  50. extern const TCHAR gc_szFullDuplexSendMutex[];
  51. // the error message and caption to use if the FormatMessage function fails
  52. extern const TCHAR gc_szUnknownMessage[];
  53. extern const TCHAR gc_szUnknownMessageCaption[];
  54. // The largest string we will accept from a string resource
  55. // or the system message table
  56. #define MAX_STRING_RESOURCE_SIZE 512
  57. // The number of milliseconds we will wait for the child processes
  58. // to exit before we timeout.
  59. extern const DWORD gc_dwChildWaitTimeout;
  60. // The number of milliseconds we will wait for the child processes
  61. // to startup and signal the supervisor before we timeout.
  62. extern const DWORD gc_dwChildStartupTimeout;
  63. // The number of milliseconds a process will wait for receive
  64. // and reply signals
  65. extern const DWORD gc_dwCommandReceiveTimeout;
  66. extern const DWORD gc_dwCommandReplyTimeout;
  67. // The number of milliseconds a process will wait to acquire the
  68. // mutex used to make a SendCommand() call.
  69. extern const DWORD gc_dwSendMutexTimeout;
  70. // The number of milliseconds to wait for a dialog box to spawn
  71. extern const DWORD gc_dwDialogTimeout;
  72. // The number of milliseconds of audio in a DirectSound buffer
  73. extern const DWORD gc_dwFrameSize;
  74. // The wave formats to try
  75. extern const WAVEFORMATEX gc_rgwfxPrimaryFormats[];
  76. extern const WAVEFORMATEX gc_wfxSecondaryFormat;
  77. extern const WAVEFORMATEX gc_rgwfxCaptureFormats[];
  78. // In the loopback test, how long to wait for the loopback test
  79. // thread proc to exit.
  80. extern const DWORD gc_dwLoopbackTestThreadTimeout;
  81. // the devices to test if the user passes null to CheckAudioSetup
  82. extern const GUID gc_guidDefaultCaptureDevice;
  83. extern const GUID gc_guidDefaultRenderDevice;
  84. #endif