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.

87 lines
2.5 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: vsd.h
  4. //
  5. // Description: Virtual Source Data Class
  6. //
  7. //
  8. //@@BEGIN_MSINTERNAL
  9. // Development Team:
  10. // Mike McLaughlin
  11. //
  12. // History: Date Author Comment
  13. //
  14. //@@END_MSINTERNAL
  15. //---------------------------------------------------------------------------
  16. //
  17. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  20. // PURPOSE.
  21. //
  22. // Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
  23. //
  24. //---------------------------------------------------------------------------
  25. //---------------------------------------------------------------------------
  26. // Constants and Macros
  27. //---------------------------------------------------------------------------
  28. //---------------------------------------------------------------------------
  29. // Classes
  30. //---------------------------------------------------------------------------
  31. typedef class CVirtualSourceData : public CObj
  32. {
  33. public:
  34. CVirtualSourceData(
  35. PDEVICE_NODE pDeviceNode
  36. );
  37. #ifdef DEBUG
  38. ENUMFUNC Dump()
  39. {
  40. int i;
  41. dprintf("VSD: %08x TN %08x Min %d Max %d Steps %d cChannels %d\n",
  42. this,
  43. pTopologyNode,
  44. MinimumValue,
  45. MaximumValue,
  46. Steps,
  47. cChannels);
  48. dprintf(" fMuted: ");
  49. for(i = 0; i < MAX_NUM_CHANNELS; i++) {
  50. dprintf("%d ", fMuted[i]);
  51. }
  52. dprintf("\n lLevel: ");
  53. for(i = 0; i < MAX_NUM_CHANNELS; i++) {
  54. dprintf("%d ", lLevel[i]);
  55. }
  56. dprintf("\n");
  57. return(lstVirtualNodeData.Dump());
  58. };
  59. #endif
  60. PTOPOLOGY_NODE pTopologyNode;
  61. LONG MinimumValue; // range to convert from
  62. LONG MaximumValue; //
  63. LONG Steps; //
  64. LONG cChannels;
  65. BOOL fMuted[MAX_NUM_CHANNELS]; // muted if TRUE
  66. LONG lLevel[MAX_NUM_CHANNELS];
  67. LIST_VIRTUAL_NODE_DATA lstVirtualNodeData;
  68. DefineSignature(0x20445356); // VSD
  69. } VIRTUAL_SOURCE_DATA, *PVIRTUAL_SOURCE_DATA;
  70. //---------------------------------------------------------------------------
  71. // Globals
  72. //---------------------------------------------------------------------------
  73. //---------------------------------------------------------------------------
  74. // Local prototypes
  75. //---------------------------------------------------------------------------
  76. NTSTATUS
  77. GetVirtualSourceDefault(
  78. IN PDEVICE_NODE pDeviceNode,
  79. IN PLONG plLevel
  80. );