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.
 
 
 
 
 
 

89 lines
2.4 KiB

//---------------------------------------------------------------------------
//
// Module: vnd.h
//
// Description: Virtual Node 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
//---------------------------------------------------------------------------
#define MAX_NUM_CHANNELS 24
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
typedef class CVirtualNodeData : public CListDoubleItem
{
public:
CVirtualNodeData(
PSTART_NODE_INSTANCE pStartNodeInstance,
PVIRTUAL_SOURCE_DATA pVirtualSourceData
);
~CVirtualNodeData();
ENUMFUNC Destroy()
{
Assert(this);
delete this;
return(STATUS_CONTINUE);
};
#ifdef DEBUG
ENUMFUNC Dump()
{
int i;
dprintf(
"VND: %08x VSD %08x SNI %08x FO %08x N# %08x\n",
this,
pVirtualSourceData,
pStartNodeInstance,
pFileObject,
NodeId);
dprintf(" Min %d Max %d Steps %d lLevel: ",
MinimumValue,
MaximumValue,
Steps);
for(i = 0; i < MAX_NUM_CHANNELS; i++) {
dprintf("%d ", lLevel[i]);
}
dprintf("\n");
return(STATUS_CONTINUE);
};
#endif
PVIRTUAL_SOURCE_DATA pVirtualSourceData;
PSTART_NODE_INSTANCE pStartNodeInstance;
PFILE_OBJECT pFileObject;
ULONG NodeId;
LONG MinimumValue; // Range to convert to
LONG MaximumValue; //
LONG Steps; //
LONG lLevel[MAX_NUM_CHANNELS]; // Local volume
DefineSignature(0x20444e56); // VND
} VIRTUAL_NODE_DATA, *PVIRTUAL_NODE_DATA;
//---------------------------------------------------------------------------
typedef ListDoubleDestroy<VIRTUAL_NODE_DATA> LIST_VIRTUAL_NODE_DATA;
//---------------------------------------------------------------------------