windows-nt/Source/XPSP1/NT/net/tapi/skywalker/tapi3/mediaobj.cpp
2020-09-26 16:20:57 +08:00

55 lines
729 B
C++

/*++
Copyright (c) 1997-1999 Microsoft Corporation
Module Name:
Abstract:
Author:
mquinton - 4/17/97
Notes:
optional-notes
Revision History:
--*/
#include "stdafx.h"
#include "uuids.h"
BOOL
IsAudioInTerminal( ITTerminal * pTerminal)
{
long lMediaType;
TERMINAL_DIRECTION td;
pTerminal->get_MediaType(
&lMediaType
);
pTerminal->get_Direction( &td );
//
// it it's audio in, use
// the compound terminal
//
if ( ( LINEMEDIAMODE_AUTOMATEDVOICE == (DWORD)lMediaType ) &&
( TD_RENDER == td ) )
{
return TRUE;
}
else
{
return FALSE;
}
}