// CCNSMT.idl : IDL source for CCNSMT.dll
|
//
|
|
// This file will be processed by the MIDL tool to
|
// produce the type library (CCNSMT.tlb) and marshalling code.
|
|
import "oaidl.idl";
|
import "ocidl.idl";
|
[
|
object,
|
uuid(94221C4D-00F1-11D4-9D59-0060B0FC246C),
|
|
helpstring("ICCNMediaTerm Interface"),
|
pointer_default(unique)
|
]
|
interface ICCNMediaTerm : IUnknown
|
{
|
[helpstring("method Initialize")]
|
HRESULT Initialize();
|
[helpstring("method UnInitialize")]
|
HRESULT UnInitialize();
|
[helpstring("method StartMicrophone")]
|
HRESULT StartMicrophone();
|
[helpstring("method StopMicrophone")]
|
HRESULT StopMicrophone();
|
[helpstring("method StartAudioReceive")]
|
HRESULT StartAudioReceive();
|
[helpstring("method StopAudioReceive")]
|
HRESULT StopAudioReceive();
|
[helpstring("method StopDtmfTone")]
|
HRESULT StopDtmfTone();
|
[helpstring("method SetAudioCodecRX")]
|
HRESULT SetAudioCodecRX([in] long CompressionType, [in] long MillisecPacketSize, [in] long EchoCancellationValue, [in] long G723BitRate);
|
[helpstring("method SetAudioCodecTX")]
|
HRESULT SetAudioCodecTX([in] long CompressionType, [in] long MillisecPacketSize, [in] long PrecedenceValue, [in] long SilenceSuppression, [in] unsigned short MaxFramesPerPacket, [in] long G723BitRate);
|
[helpstring("method SetAudioDestination")]
|
HRESULT SetAudioDestination([in] BSTR strHostName, [in] long nUDPortNumber);
|
[helpstring("method SetAudioReceivePort")]
|
HRESULT SetAudioReceivePort([in] long nUDPPortNumber);
|
[helpstring("method StartDtmfTone")]
|
HRESULT StartDtmfTone([in] long cToneAsChar, [in] long OnTime, [in] long OffTime);
|
[helpstring("method StartPlayingFileTX")]
|
HRESULT StartPlayingFileTX([in] BSTR Filename, [in] unsigned long Mode, [in] unsigned long volume, [in, out] long * Cookie);
|
[helpstring("method StartPlayingFileRX")]
|
HRESULT StartPlayingFileRX([in] BSTR Filename, [in] unsigned long Mode, [in] unsigned long waveoutDeviceID, [in] unsigned long volume, [in, out] long * Cookie);
|
[helpstring("method StopPlayingFileTX")]
|
HRESULT StopPlayingFileTX([in] unsigned long Cookie);
|
[helpstring("method StopPlayingFileRX")]
|
HRESULT StopPlayingFileRX([in] unsigned long Cookie);
|
[helpstring("method StartTX")]
|
HRESULT StartTX([in] unsigned long waveinDeviceID);
|
[helpstring("method StopTX")]
|
HRESULT StopTX();
|
[helpstring("method StartRX")]
|
HRESULT StartRX([in] unsigned long waveoutDeviceID);
|
[helpstring("method StopRX")]
|
HRESULT StopRX();
|
[helpstring("method SetSpeakerVolume")]
|
HRESULT SetSpeakerVolume([in] unsigned long deviceID, [in] unsigned long volume);
|
[helpstring("method SetMicrophoneVolume")]
|
HRESULT SetMicrophoneVolume([in] unsigned long deviceID, [in] unsigned long volume);
|
[helpstring("method SetFilePlayVolume")]
|
HRESULT SetFilePlayVolume([in] unsigned long cookie, [in] unsigned long volume);
|
[helpstring("method NetworkMonitor")]
|
HRESULT NetworkMonitor([in] unsigned long Enable, [in] unsigned long DurationMillisec);
|
};
|
|
|
[
|
uuid(94221C4F-00F1-11D4-9D59-0060B0FC246C),
|
helpstring("_ICCNMediaTermEvents Interface")
|
]
|
interface _ICCNMediaTermEvents : IUnknown
|
{
|
[helpstring("method EndOfFileEventRX")]
|
HRESULT EndOfFileEventRX([in] long Cookie);
|
[helpstring("method EndOfFileEventTX")]
|
HRESULT EndOfFileEventTX([in] long Cookie);
|
[helpstring("method NetworkMonitorEventRX")]
|
HRESULT NetworkMonitorEventRX([in] double RXMean, [in] double RXVariance);
|
[helpstring("method NetworkMonitorEventTX")]
|
HRESULT NetworkMonitorEventTX([in] double TXMean, [in] double TXVariance);
|
};
|
|
|
[
|
uuid(94221C40-00F1-11D4-9D59-0060B0FC246C),
|
version(1.0),
|
helpstring("CCNSMT 1.0 Type Library")
|
]
|
library CCNSMTLib
|
{
|
importlib("stdole32.tlb");
|
importlib("stdole2.tlb");
|
|
[
|
uuid(94221C4E-00F1-11D4-9D59-0060B0FC246C),
|
helpstring("CCNMediaTerm Class")
|
]
|
coclass CCNMediaTerm
|
{
|
[default] interface ICCNMediaTerm;
|
[default, source] interface _ICCNMediaTermEvents;
|
};
|
};
|