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.

54 lines
783 B

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. Author:
  6. mquinton - 4/17/97
  7. Notes:
  8. optional-notes
  9. Revision History:
  10. --*/
  11. #include "stdafx.h"
  12. #include "uuids.h"
  13. BOOL
  14. IsAudioInTerminal( ITTerminal * pTerminal)
  15. {
  16. long lMediaType;
  17. TERMINAL_DIRECTION td;
  18. pTerminal->get_MediaType(
  19. &lMediaType
  20. );
  21. pTerminal->get_Direction( &td );
  22. //
  23. // it it's audio in, use
  24. // the compound terminal
  25. //
  26. if ( ( LINEMEDIAMODE_AUTOMATEDVOICE == (DWORD)lMediaType ) &&
  27. ( TD_RENDER == td ) )
  28. {
  29. return TRUE;
  30. }
  31. else
  32. {
  33. return FALSE;
  34. }
  35. }