88 lines
2.5 KiB
C++
88 lines
2.5 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// Module: vsd.h
|
|
//
|
|
// Description: Virtual Source Data Class
|
|
//
|
|
//
|
|
//@@BEGIN_MSINTERNAL
|
|
// Development Team:
|
|
// Mike McLaughlin
|
|
//
|
|
// History: Date Author Comment
|
|
//
|
|
//@@END_MSINTERNAL
|
|
//---------------------------------------------------------------------------
|
|
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
|
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
|
|
// PURPOSE.
|
|
//
|
|
// Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Constants and Macros
|
|
//---------------------------------------------------------------------------
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Classes
|
|
//---------------------------------------------------------------------------
|
|
|
|
typedef class CVirtualSourceData : public CObj
|
|
{
|
|
public:
|
|
CVirtualSourceData(
|
|
PDEVICE_NODE pDeviceNode
|
|
);
|
|
#ifdef DEBUG
|
|
ENUMFUNC Dump()
|
|
{
|
|
int i;
|
|
dprintf("VSD: %08x TN %08x Min %d Max %d Steps %d cChannels %d\n",
|
|
this,
|
|
pTopologyNode,
|
|
MinimumValue,
|
|
MaximumValue,
|
|
Steps,
|
|
cChannels);
|
|
dprintf(" fMuted: ");
|
|
for(i = 0; i < MAX_NUM_CHANNELS; i++) {
|
|
dprintf("%d ", fMuted[i]);
|
|
}
|
|
dprintf("\n lLevel: ");
|
|
for(i = 0; i < MAX_NUM_CHANNELS; i++) {
|
|
dprintf("%d ", lLevel[i]);
|
|
}
|
|
dprintf("\n");
|
|
return(lstVirtualNodeData.Dump());
|
|
};
|
|
#endif
|
|
PTOPOLOGY_NODE pTopologyNode;
|
|
LONG MinimumValue; // range to convert from
|
|
LONG MaximumValue; //
|
|
LONG Steps; //
|
|
LONG cChannels;
|
|
BOOL fMuted[MAX_NUM_CHANNELS]; // muted if TRUE
|
|
LONG lLevel[MAX_NUM_CHANNELS];
|
|
LIST_VIRTUAL_NODE_DATA lstVirtualNodeData;
|
|
DefineSignature(0x20445356); // VSD
|
|
|
|
} VIRTUAL_SOURCE_DATA, *PVIRTUAL_SOURCE_DATA;
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Globals
|
|
//---------------------------------------------------------------------------
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Local prototypes
|
|
//---------------------------------------------------------------------------
|
|
|
|
NTSTATUS
|
|
GetVirtualSourceDefault(
|
|
IN PDEVICE_NODE pDeviceNode,
|
|
IN PLONG plLevel
|
|
);
|