Leaked source code of windows server 2003
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.

50 lines
1.3 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Module: vsd.cpp
  4. //
  5. // Description:
  6. //
  7. // Virtual Source Data Class
  8. //
  9. //@@BEGIN_MSINTERNAL
  10. // Development Team:
  11. // Mike McLaughlin
  12. //
  13. // History: Date Author Comment
  14. //
  15. // To Do: Date Author Comment
  16. //
  17. //@@END_MSINTERNAL
  18. //
  19. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  20. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  21. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  22. // PURPOSE.
  23. //
  24. // Copyright (c) 1996-1999 Microsoft Corporation. All Rights Reserved.
  25. //
  26. //---------------------------------------------------------------------------
  27. #include "common.h"
  28. // Default attenuation level for virtual source.
  29. #define VIRTUAL_SOURCE_DEFAULT_ATTENUATION 0
  30. //---------------------------------------------------------------------------
  31. //---------------------------------------------------------------------------
  32. CVirtualSourceData::CVirtualSourceData(
  33. PDEVICE_NODE pDeviceNode
  34. )
  35. {
  36. LONG i;
  37. cChannels = 2;
  38. MinimumValue = (-96 * 65536);
  39. MaximumValue = 0;
  40. Steps = (65536/2);
  41. for(i = 0; i < MAX_NUM_CHANNELS; i++) {
  42. this->lLevel[i] = (VIRTUAL_SOURCE_DEFAULT_ATTENUATION * 65536);
  43. }
  44. }